2003-03-26 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b81774d8
AC
12003-03-26 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
4 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5 regcache and dummy_addr parameters.
6 * gdbarch.h, gdbarch.c: Re-generate.
7 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8 available; assume it will handle stack alignment and return
9 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10 legacy_push_arguments.
11 (legacy_push_arguments): Rename default_push_arguments.
12 * value.h (legacy_push_arguments): Rename default_push_arguments.
13 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
14 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
15 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
16 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
17 * config/i386/tm-symmetry.h: Update.
18 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
19 * x86-64-tdep.c (x86_64_init_abi): Update.
20 * v850-tdep.c (v850_gdbarch_init): Update.
21 * sparc-tdep.c (sparc_gdbarch_init): Update.
22 * sh-tdep.c (sh_gdbarch_init): Update.
23 * s390-tdep.c (s390_gdbarch_init): Update.
24 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
25 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
26 * mips-tdep.c (mips_gdbarch_init): Update.
27 * mcore-tdep.c (mcore_gdbarch_init): Update.
28 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
29 * ia64-tdep.c (ia64_gdbarch_init): Update.
30 * i386-tdep.c (i386_gdbarch_init): Update.
31 * hppa-tdep.c (hppa_gdbarch_init): Update.
32 * h8300-tdep.c (h8300_gdbarch_init): Update.
33 * frv-tdep.c (frv_gdbarch_init): Update.
34 * d10v-tdep.c (d10v_gdbarch_init): Update.
35 * cris-tdep.c (cris_gdbarch_init): Update.
36 * avr-tdep.c (avr_gdbarch_init): Update.
37 * arm-tdep.c (arm_gdbarch_init): Update.
38 * arm-linux-tdep.c (arm_linux_init_abi): Update.
39 * alpha-tdep.c (alpha_gdbarch_init): Update.
40
f541410f
DJ
412003-03-26 Daniel Jacobowitz <drow@mvista.com>
42
43 * signals/signals.c (do_target_signal_to_host): Correct realtime
44 signal range test.
45
69f567ae
DJ
462003-03-26 Daniel Jacobowitz <drow@mvista.com>
47
48 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
49 (struct sal_chain, map_catch_names): Remove.
50 (catch_exception_command_1): Don't call
51 handle_gnu_4_16_catch_command.
52
d5d14a5a
DJ
532003-03-26 Daniel Jacobowitz <drow@mvista.com>
54
55 From Mark Dettinger <dettinge@de.ibm.com>:
56 * dwarf2cfi.c (read_2u): Increment pointer by two.
57
bdd73e22
DJ
582003-03-26 Daniel Jacobowitz <drow@mvista.com>
59
60 * signals/signals.c: Fix typos in last change.
61
960cb555
DJ
622003-03-26 Daniel Jacobowitz <drow@mvista.com>
63
64 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
65 not already defined. Use __SIGRTMIN if available.
66 (target_signal_from_host): Remove SIGRTMIN block.
67 (do_target_signal_to_host): Remove SIGRTMIN block; check that
68 the signal is within the realtime range.
69
f636b87d
AF
702003-03-25 Adam Fedor <fedor@gnu.org>
71
72 * Makefile.in (infrun.o): Add $(language_h)
73 * infrun.c (handle_inferior_event): Use skip_language_trampoline
74 for language specific trampolines.
75 * language.h (struct language_defn): Add skip_trampoline.
76 (skip_language_trampoline): Declare.
77 * language.c (unk_lang_trampoline, skip_language_trampoline):
78 New functions.
79 (unknown_language_defn, auto_language_defn, local_language_defn):
80 Add ukn_lang_trampoline.
81 * ada-lang.c (ada_language_defn): Add NULL for language
82 specific skip_trampoline.
83 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
84 scm-lang.c: Likewise.
85 * objc-lang.c (objc_skip_trampoline): New function.
86 (objc_language_defn): Add objc_skip_trampoline.
87
88I2003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
89
90 * frame.c (get_prev_frame): Delay validating a frame's ID -
91 non-NULL, didn't go backwards - until an attempt to unwind it to
92 the previous frame.
93
f933a9c5
AC
942003-03-25 Andrew Cagney <cagney@redhat.com>
95
96 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
97 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
98 * gdbarch.h, gdbarch.c: Re-generate.
99 * config/sparc/tm-sparc.h
100 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
101 * sparc-tdep.c (sparc_gdbarch_init): Set
102 deprecated_extra_stack_alignment_needed.
103 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
105 extra_stack_alignment_needed.
106 * v850-tdep.c (v850_gdbarch_init): Ditto.
107 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
108 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
109 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
110 * cris-tdep.c (cris_gdbarch_init): Ditto.
111 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
113
4183d812
AC
1142003-03-25 Andrew Cagney <cagney@redhat.com>
115
116 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
117 STORE_STRUCT_RETURN.
118 * gdbarch.h, gdbarch.c: Regenerate.
119 * d10v-tdep.c (d10v_store_struct_return): Delete function.
120 (d10v_push_arguments): Set the struct return register.
121 (d10v_gdbarch_init): Update.
122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
123 * x86-64-tdep.c (x86_64_init_abi): Update.
124 * vax-tdep.c (vax_gdbarch_init): Update.
125 * v850-tdep.c (v850_gdbarch_init): Update.
126 * sparc-tdep.c (sparc_gdbarch_init): Update.
127 * sh-tdep.c (sh_gdbarch_init): Update.
128 * s390-tdep.c (s390_gdbarch_init): Update.
129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
130 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
131 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
132 * mips-tdep.c (mips_gdbarch_init): Update.
133 * mcore-tdep.c (mcore_gdbarch_init): Update.
134 * m68k-tdep.c (m68k_gdbarch_init): Update.
135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
136 * ia64-tdep.c (ia64_gdbarch_init): Update.
137 * i386-tdep.c (i386_gdbarch_init): Update.
138 * hppa-tdep.c (hppa_gdbarch_init): Update.
139 * h8300-tdep.c (h8300_gdbarch_init): Update.
140 * frv-tdep.c (frv_gdbarch_init): Update.
141 * cris-tdep.c (cris_gdbarch_init): Update.
142 * avr-tdep.c (avr_gdbarch_init): Update.
143 * arm-tdep.c (arm_gdbarch_init): Update.
144 * alpha-tdep.c (alpha_gdbarch_init): Update.
145
1bf6d5cc
AC
1462003-03-25 Andrew Cagney <cagney@redhat.com>
147
148 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
149 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
150 CALL_DUMMY_STACK_ADJUST with a predicate variable.
151 * gdbarch.h, gdbarch.c: Regenerate.
152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
153 call_dummy_stack_adjust_p.
154 * vax-tdep.c (vax_gdbarch_init): Ditto.
155 * v850-tdep.c (v850_gdbarch_init): Ditto.
156 * sh-tdep.c (sh_gdbarch_init): Ditto.
157 * s390-tdep.c (s390_gdbarch_init): Ditto.
158 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
159 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
161 * mips-tdep.c (mips_gdbarch_init): Ditto.
162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
166 * i386-tdep.c (i386_gdbarch_init): Ditto.
167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
168 * frv-tdep.c (frv_gdbarch_init): Ditto.
169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
170 * cris-tdep.c (cris_gdbarch_init): Ditto.
171 * avr-tdep.c (avr_gdbarch_init): Ditto.
172 * arm-tdep.c (arm_gdbarch_init): Ditto.
173 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
174 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
175 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
176 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
177 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
178 call_dummy_stack_adjust_p.
179 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
180 (CALL_DUMMY_STACK_ADJUST): Delete macro.
181 * sparc-tdep.c (sparc32_push_arguments): Update.
182 * valops.c (hand_function_call): Update.
183
71c08af0
CV
1842003-03-25 Corinna Vinschen <vinschen@redhat.com>
185
186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
187 set_gdbarch_char_signed.
188
30757f90
RE
1892003-03-25 Richard Earnshaw <rearnsha@arm.com>
190
191 PR cli/548
192 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
193
03d48a7d
RE
1942003-03-25 Richard Earnshaw <rearnsha@arm.com>
195
196 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
197 (_initialize_arm_tdep): Don't set tm_print_insn.
198
2cf6873c
AF
1992003-03-24 Adam Fedor <fedor@gnu.org>
200
201 * Makefile.in (YYOBJ): Add objc-exp.tab.o
202 * objc-lang.h: Add multiple inclusion protection.
203 (start_msglist, add_msglist, end_msglist): Additional declarations.
204
17c0759e
RE
2052003-03-24 Richard Earnshaw <rearnsha@arm.com>
206
207 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
208 value was renamed to ARM_FLOAT_SOFT_FPA.
209
618ce49f
AC
2102003-03-23 Andrew Cagney <cagney@redhat.com>
211
212 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
213 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
214 * gdbarch.h, gdbarch.c: Regenerate.
215 * valops.c (hand_function_call): Update.
216 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
217 * frame.c (legacy_saved_regs_this_id): Update.
218 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
219 * dummy-frame.h: Update.
220 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
221 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
222 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
223 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
224 * config/m68k/tm-sun3.h: Update.
225 * blockframe.c (inside_main_func, frame_chain_valid): Update.
226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
227 * x86-64-tdep.c (x86_64_init_abi): Update.
228 * vax-tdep.c (vax_gdbarch_init): Update.
229 * v850-tdep.c (v850_gdbarch_init): Update.
230 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
231 * sh-tdep.c (sh_gdbarch_init): Update.
232 * s390-tdep.c (s390_gdbarch_init): Update.
233 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
234 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
235 (frame_get_saved_regs): Update.
236 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
238 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
239 * mips-tdep.c (mips_gdbarch_init): Update.
240 * mcore-tdep.c (mcore_gdbarch_init): Update.
241 * m68k-tdep.c (m68k_gdbarch_init): Update.
242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
243 * ia64-tdep.c (ia64_gdbarch_init): Update.
244 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
245 * i386-interix-tdep.c (i386_interix_init_abi): Update.
246 (i386_interix_back_one_frame): Update.
247 * hppa-tdep.c (hppa_gdbarch_init): Update.
248 (hppa_init_extra_frame_info): Update.
249 * h8300-tdep.c (h8300_gdbarch_init): Update.
250 * frv-tdep.c (frv_gdbarch_init): Update.
251 * cris-tdep.c (cris_gdbarch_init): Update.
252 * avr-tdep.c (avr_gdbarch_init): Update.
253 * arm-tdep.c (arm_gdbarch_init): Update.
254 * alpha-tdep.c (alpha_gdbarch_init): Update.
255
fd50bc42
RE
2562003-03-22 Richard Earnshaw <rearnsha@arm.com>
257
258 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
259 (arm_get_fp_model): Declare.
260 * arm-tdep.c (fp_model_strings): New string array.
261 (arm_fp_model, current_fp_model): New variables.
262 (arm_get_fp_model): New function.
263 (arm_set_fp): New function.
264 (set_fp_model_sfunc): New function.
265 (show_fp_model): New function.
266 (_initialize_arm_tdep): Add new command to set/show the FPU.
267 (arm_extract_return_value): Use arm_get_fp_model.
268 (arm_store_return_value): Likewise.
269 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
270 to initialize the floating-point data types.
271 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
272 model is FPA.
273
26304000
RE
2742003-03-22 Richard Earnshaw <rearnsha@arm.com>
275
276 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
277 the current setting of each value.
278 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
279 new_set and new_show. Use add_setshow_cmd_full and
280 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
281 commands and add new version as subcommands of "set/show arm".
282
afd7eef0
RE
2832003-03-22 Richard Earnshaw <rearnsha@arm.com>
284
285 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
286 (set_arm_command, show_arm_command): New functions.
287 (_initialize_arm_tdep): Add them.
288 (num_disassembly_options): Renamed from num_flavor_options.
289 (valid_disassembly_styles): Renamed from valid_flavors.
290 (disassembly_style): Renamed from disassembly_flavor.
291 (set_disassembly_style_sfunc): Renamed from
292 set_disassembly_flavor_sfunc.
293 (set_disassembly_style): Renamed from set_disassembly_flavor.
294 (arm_othernames): Updated.
295 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
296 command. Add "set/show arm disassembly" commands. Deprecate
297 "othernames" command.
298
299a7944
RE
2992003-03-22 Richard Earnshaw <rearnsha@arm.com>
300
301 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
302 (arm-tdep.o): Depend on elf_arm_h.
303
c1dac9e6
RE
3042003-03-22 Richard Earnshaw <rearnsha@arm.com>
305
306 * Makefile.in (coff_internal_h): Define.
307 (arm-tdep.o): Update dependencies.
308
2702d96c
RE
3092003-03-22 Richard Earnshaw <rearnsha@arm.com>
310
311 * arm-tdep.c (prologue_cache): Delete.
312 (check_prologue_cache, save_prologue_cache): Delete.
313 (arm_scan_prologue): Don't check or update the prologue_cache.
314 (arm_gdb_arch_init): Don't initialize it.
315 (_initialize_arm_tdep): Likewise.
316
27d5d74b
SC
3172003-03-21 Stephane Carrez <stcarrez@nerim.fr>
318
319 * MAINTAINERS (tui): Maintainer of tui code.
320
1762d96d
CV
3212003-03-21 Corinna Vinschen <vinschen@redhat.com>
322
323 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
324 (i386-cygwin-tdep.o): Add dependencies.
325 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
326 * i386-cygwin-tdep.c: New file.
327 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
328 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
329
4c2e2391
AC
3302003-03-20 Andrew Cagney <cagney@redhat.com>
331
f20d38b7
AC
332 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
333 (handle_inferior_event): Remove code calling
334 DYNAMIC_TRAMPOLINE_NEXTPC.
335
0022b738
AC
336 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
337 already has a full path.
338
864dbc90
AC
339 * main.c (gdb_main): Return 1.
340 (captured_main): Call error to report an invalid interpreter.
341
4c2e2391
AC
342 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
343 * alpha-osf1-tdep.c: Include "gdb_string.h".
344
5ef7553b
JB
3452003-03-19 J. Brobecker <brobecker@gnat.com>
346
347 Continuing work to convert the hppa targets to multiarch partial.
348
349 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
350 method, now that hppa_push_dummy_frame has a conformant prototype.
351 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
352 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
353 for the switch to multiarch partial.
354
7bde8967
KB
3552003-03-19 Kevin Buettner <kevinb@redhat.com>
356
357 * mdebugread.c (parse_symbol): For stEnd, we're done counting
358 when iss is issNull.
359
b006a9e9
KB
3602003-03-18 Kevin Buettner <kevinb@redhat.com>
361
362 * mips-tdep.c (mips_register_name): Fix fencepost error involving
363 NUM_REGS bounds check.
364
5e2e9765
KB
3652003-03-18 Kevin Buettner <kevinb@redhat.com>
366
367 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
368 * mips-tdep.c (gdb_assert.h): Include.
369 (mips_generic_reg_names, mips_processor_reg_names): Make static.
370 (mips_register_name): Handle integer registers explicitly. Add
371 bounds checking.
372 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
373 (mips_lsi33k_reg_names): Don't list integer registers; they're
374 handled by mips_register_name() now.
375 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
376 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
377 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
378 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
379 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
380
a2867626
AC
3812003-03-18 Andrew Cagney <cagney@redhat.com>
382
383 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
384 a void pointer.
385 * gdbtypes.h (print_scalar_formatted): Update declaration.
386 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
387
06600e06
JB
3882003-03-18 J. Brobecker <brobecker@gnat.com>
389
390 * infrun.c (observer.h): Add #include.
391 (normal_stop): Add call to observer_notify_normal_stop.
392 * Makefile.in (infrun.o): Add dependency on observer.h.
393
7daf4f5b
JB
3942003-03-18 J. Brobecker <brobecker@gnat.com>
395
396 Continuing work to convert the hppa targets to multiarch partial.
397 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
398 parameter. Reformat comment.
399 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
400 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
401 to match new profile.
402
3371ccc0
JB
4032003-03-18 J. Brobecker <brobecker@gnat.com>
404
405 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
406 appear to be working in any case.
407
4fbe891e
JB
4082003-03-18 J. Brobecker <brobecker@gnat.com>
409
410 * observer.c (observer_test_first_observer): New static variable.
411 (observer_test_second_observer): Likewise.
412 (observer_test_third_observer): Likewise.
413 (observer_test_first_notification_function): New static function.
414 (observer_test_second_notification_function): Likewise.
415 (observer_test_third_notification_function): Likewise.
416
a7ff40e7
JB
4172003-03-17 J. Brobecker <brobecker@gnat.com>
418
419 * hppa-tdep.c (gdb_assert.h): Add missing #include.
420 * somsolib.c (gdb_assert.h): Likewise.
421 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
422 (somsolib.o): Likewise.
423
26ca4152
AC
4242003-03-17 Andrew Cagney <cagney@redhat.com>
425
426 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
427 BFD. Simplify setting of di.endian.
428
0a613259
AC
4292003-03-17 Andrew Cagney <cagney@redhat.com>
430
431 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
432 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
433
434 From Elena Zannoni <ezannoni@redhat.com>
435 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
436 vector and floating-point parameters.
437 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
438 convention.
439 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
440
1132738f
FN
4412003-03-17 Fernando Nasser <fnasser@redhat.com>
442
443 * MAINTAINERS: Remove my name from several maintainership roles.
444
6dc42492
AC
4452003-03-17 Andrew Cagney <cagney@redhat.com>
446
447 Fix frame off-by-one bug.
448 * frame-unwind.h (frame_this_id_ftype): Replace
449 frame_unwind_id_ftype.
450 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
451 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
452 with "prev_register".
453 * frame-unwind.c (frame_unwind_find_by_pc): Return
454 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
455 comment.
456 * dummy-frame.c (cached_find_dummy_frame): Delete function.
457 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
458 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
459 (dummy_frame_unwind): Update.
460 * sentinel-frame.c (sentinel_frame_prev_register): Replace
461 sentinel_frame_register_unwind.
462 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
463 (sentinel_frame_unwinder): Update.
464 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
465 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
466 * frame.c (create_sentinel_frame): Update. Initialize
467 "prologue_cache" instead of "unwind_cache".
468 (frame_register_unwind): Call this frame's prev_register with the
469 next frame and this frame's prologue cache.
470 (get_prev_frame): Simplify. Always call prev frame's this_id with
471 this frame and prev frame's prologue cache. Document that this
472 call is shifted one to the left when compared to the
473 frame_register_unwind call.
474 (legacy_saved_regs_prev_register): Replace
475 frame_saved_regs_register_unwind.
476 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
477 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
478 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
479 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
480 (d10v_frame_unwind): Update.
481 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
482 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
483 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
484 "saved_regs" with "this_saved_regs".
485
efd710d6
AC
4862003-03-16 Andrew Cagney <cagney@redhat.com>
487
488 * frame.c (frame_pop): Don't call target_store_registers. Fix
489 problem reported by Mark Kettenis.
490
4e259f09
MK
4912003-03-16 Mark Kettenis <kettenis@gnu.org>
492
493 * i386-tdep.c (i386_register_type): Renamed from
494 i386_register_virtual_type. Adjust function signature.
495 (i386_gdbarch_init): Set register_type instead of
496 deprecated_max_register_raw_size,
497 deprecated_max_register_virtual_size and register_virtual_type.
498
055bb976
AC
4992003-03-14 Andrew Cagney <cagney@redhat.com>
500
501 * frame.c (get_prev_frame): When a legacy frame, always call
502 legacy_get_prev_frame. Simplify unwind code using assumption that
503 the unwinder is new.
504 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
505 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
506 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
507
ac2adee5
AC
5082003-03-14 Andrew Cagney <cagney@redhat.com>
509
510 * frame.c (get_saved_register): Delete function.
511 * frame.h (get_saved_register): Delete declaration.
512 * xstormy16-tdep.c: Update comment.
513 * regcache.h: Update comments.
514 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
515 get_saved_register and extract_address, use
516 frame_read_unsigned_register.
517 (sparc_frame_saved_pc): Ditto.
518 (sparc_get_saved_register): Instead of get_saved_register, use
519 frame_register.
520 (sparc_pop_frame): Ditto.
521 * findvar.c: Update comments.
522 (value_of_register): Call frame_register instead of
523 get_saved_register.
524 (value_from_register): Ditto.
525 * config/sparc/tm-sparc.h: Update comment.
526 * breakpoint.c: Update comment.
527
129c1cd6
AC
5282003-03-14 Andrew Cagney <cagney@redhat.com>
529
530 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
531 GET_SAVED_REGISTER.
532 * gdbarch.h, gdbarch.c: Re-generate.
533 * frame.h: Update comments.
534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
535 * x86-64-tdep.c (x86_64_init_abi): Update.
536 * sparc-tdep.c (sparc_gdbarch_init): Update.
537 * sh-tdep.c (sh_gdbarch_init): Update.
538 * mips-tdep.c (mips_gdbarch_init): Update.
539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
540 * cris-tdep.c (cris_gdbarch_init): Update.
541 * ia64-tdep.c (ia64_gdbarch_init): Update.
542 * frame.c (frame_register): Update.
543 (get_saved_register): Update.
544 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
545
749b82f6
AC
5462003-03-13 Andrew Cagney <cagney@redhat.com>
547
548 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
549 * gdbarch.h, gdbarch.c: Regenerate.
550 * valops.c (hand_function_call): Update comment.
551 * stack.c (return_command): Update comment.
552 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
553 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
555 * x86-64-tdep.c (x86_64_init_abi): Update.
556 * vax-tdep.c (vax_gdbarch_init): Update.
557 * v850-tdep.c (v850_gdbarch_init): Update.
558 * sparc-tdep.c (sparc_gdbarch_init): Update.
559 * sh-tdep.c (sh_gdbarch_init): Update.
560 * s390-tdep.c (s390_gdbarch_init): Update.
561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
563 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
564 * mips-tdep.c (mips_gdbarch_init): Update.
565 * mcore-tdep.c (mcore_gdbarch_init): Update.
566 * m68k-tdep.c (m68k_gdbarch_init): Update.
567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
568 * ia64-tdep.c (ia64_gdbarch_init): Update.
569 * i386-tdep.c (i386_gdbarch_init): Update.
570 * hppa-tdep.c (hppa_gdbarch_init): Update.
571 * h8300-tdep.c (h8300_gdbarch_init): Update.
572 * frv-tdep.c (frv_gdbarch_init): Update.
573 * cris-tdep.c (cris_gdbarch_init): Update.
574 * avr-tdep.c (avr_gdbarch_init): Update.
575 * arm-tdep.c (arm_gdbarch_init): Update.
576 * alpha-tdep.c (alpha_gdbarch_init): Update.
577
1594fa56
AC
5782003-03-13 Andrew Cagney <cagney@redhat.com>
579
580 * frame.c (legacy_frame_p): New function.
581 (get_prev_frame): Use legacy_frame_p.
582 * frame.h (legacy_frame_p): Declare.
583
7717fda3
V
5842003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
585
586 * MAINTAINERS (write after approval): Alphabetically
587 listing corrected.
588
0c67cbe9
V
5892003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
590
591 * MAINTAINERS (write after approval): Add myself.
592
03febf99
AC
5932003-03-12 Andrew Cagney <cagney@redhat.com>
594
595 * frame.c (get_prev_frame): Rename the frame parameter to
596 "this_frame".
597 (get_next_frame, legacy_get_prev_frame): Ditto.
598
0a1e1ca1
AC
5992003-03-12 Andrew Cagney <cagney@redhat.com>
600
601 * frame.c (get_current_frame): Check target_has_registers before
602 checking target_has_stack.
603 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
604 instead of deprecated_selected_frame.
605 * findvar.c (value_of_register): Pass "frame", not
606 deprecated_selected_frame, to value_of_builtin_reg.
607
a66a9c23
AC
6082003-03-12 Andrew Cagney <cagney@redhat.com>
609
610 * regcache.c (regcache_cooked_write_signed): New function.
611 (regcache_cooked_write_unsigned): New function.
612 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
613 (regcache_cooked_read_signed): Fix regnum in range assertion.
614 * regcache.h (regcache_cooked_write_signed): Declare.
615 (regcache_cooked_write_unsigned): Declare.
616
8bedc050
AC
6172003-03-12 Andrew Cagney <cagney@redhat.com>
618
619 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
620 * gdbarch.h, gdbarch.c: Re-generate.
621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
622 * x86-64-tdep.h: Update.
623 * x86-64-tdep.c (x86_64_init_abi): Update.
624 * v850-tdep.c (v850_gdbarch_init): Update.
625 * sparc-tdep.c (sparc_gdbarch_init): Update.
626 * sh-tdep.c (sh_gdbarch_init): Update.
627 * s390-tdep.c (s390_gdbarch_init): Update.
628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
629 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
632 * mips-tdep.c (mips_gdbarch_init): Update.
633 * mcore-tdep.c (mcore_gdbarch_init): Update.
634 * m68k-tdep.c (m68k_gdbarch_init): Update.
635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
636 * ia64-tdep.c (ia64_gdbarch_init): Update.
637 * i386-tdep.c (i386_gdbarch_init): Update.
638 * i386-interix-tdep.c (i386_interix_init_abi): Update.
639 * hppa-tdep.c (hppa_gdbarch_init): Update.
640 * h8300-tdep.c (h8300_gdbarch_init): Update.
641 * frv-tdep.c (frv_gdbarch_init): Update.
642 * cris-tdep.c (cris_gdbarch_init): Update.
643 * avr-tdep.c (avr_gdbarch_init): Update.
644 * arm-tdep.c (arm_gdbarch_init): Update.
645 * alpha-tdep.c (alpha_gdbarch_init): Update.
646 * sh-tdep.c (sh_init_extra_frame_info): Update.
647 (sh64_init_extra_frame_info): Update.
648 * ns32knbsd-nat.c (frame_num_args): Update.
649 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
650 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
651 (xstormy16_frame_chain_valid): Update.
652 * vax-tdep.c (vax_saved_pc_after_call): Update.
653 * v850-tdep.c (v850_frame_chain): Update.
654 (v850_pop_frame): Update.
655 (v850_init_extra_frame_info): Update.
656 * sparc-tdep.c (setup_arbitrary_frame): Update.
657 * ns32k-tdep.c (umax_frame_num_args): Update.
658 * s390-tdep.c (s390_pop_frame_regular): Update.
659 * mn10300-tdep.c (mn10300_frame_chain): Update.
660 (mn10300_pop_frame_regular): Update.
661 (mn10300_init_extra_frame_info): Update.
662 * mips-tdep.c (mips_init_frame_pc_first): Update.
663 (mips_frame_chain): Update.
664 (mips_pop_frame): Update.
665 * mcore-tdep.c (mcore_frame_chain): Update.
666 (mcore_pop_frame): Update.
667 (mcore_init_extra_frame_info): Update.
668 * arch-utils.c (init_frame_pc_default): Update.
669 * m68k-tdep.c (isi_frame_num_args): Update.
670 (delta68_frame_num_args): Update.
671 (news_frame_num_args): Update.
672 * ia64-tdep.c (ia64_pop_frame_regular): Update.
673 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
674 (alpha_frame_chain): Update.
675 (alpha_pop_frame): Update.
676 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
677 (hppa_init_extra_frame_info): Update.
678 (hppa_frame_chain): Update.
679 (hppa_frame_chain_valid): Update.
680 * cris-tdep.c (cris_init_extra_frame_info): Update.
681 * avr-tdep.c (avr_init_extra_frame_info): Update.
682 * arm-tdep.c (arm_frame_chain_valid): Update.
683 (arm_init_extra_frame_info): Update.
684 (arm_pop_frame): Update.
685 * frame.c (frame_pc_unwind): Update.
686 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
687 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
688 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
689 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
690 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
691 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
692
7a25a7c1
AC
6932003-03-12 Andrew Cagney <cagney@redhat.com>
694
695 Eliminate the need for POP_FRAME.
696 * frame.c (do_frame_unwind_register): New function.
697 (frame_pop): When no POP_FRAME, pop the frame using register
698 unwind and a scratch regcache.
699 (frame_saved_regs_pop): Delete function.
700 (trad_frame_unwinder): Update.
701 * d10v-tdep.c (d10v_frame_pop): Delete function.
702 (d10v_frame_unwind): Update.
703 * sentinel-frame.c (sentinel_frame_pop): Delete function.
704 (sentinel_frame_unwinder): Update.
705 * dummy-frame.c (dummy_frame_pop): Delete function.
706 (dummy_frame_unwind): Update.
707 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
708 (struct frame_unwind): Update.
709
2f38ef89
KB
7102003-03-11 Kevin Buettner <kevinb@redhat.com>
711
712 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
713 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
714 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
715 Do range checks on register number obtained from debugging info.
716 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
717 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
718 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
719 mapping function.
720 (do_fp_register_row): Fix typo which caused double type to be
721 used when attempting to unpack a float.
722
552f4abf
JB
7232003-03-11 J. Brobecker <brobecker@gnat.com>
724
725 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
726
e0d2ae16
AC
7272003-03-11 Andrew Cagney <cagney@redhat.com>
728
729 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
730 frame. Problem found by Corinna Vinschen.
731
ddbfdd06
PM
7322003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
733
734 * doublest.c (floatformat_from_length): Accept also
735 the real size of 'long double' type.
736
088b2ddc 7372003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 738
088b2ddc 739 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
740 * breakpoint.c (bpstat_copy): Copy the command lines as well
741 as the old value, to match what is freed in bpstat_clear.
742
f56f77c1
DC
7432003-03-10 David Carlton <carlton@math.stanford.edu>
744
745 * minsyms.c (add_minsym_to_hash_table): Replace
746 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
747 (compare_minimal_symbols, compact_minimal_symbols)
748 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
749 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
750 of DEPRECATED_SYMBOL_MATCHES_NAME.
751 (lookup_minimal_symbol_solib_trampoline): Ditto.
752
5602984a
AC
7532003-03-10 Andrew Cagney <cagney@redhat.com>
754
755 * regcache.h (regcache_cooked_read_ftype): Define.
756 (regcache_save, regcache_restore): Add a cooked_read parameter.
757 * regcache.c (regcache_save, regcache_restore): Update.
758 (do_cooked_read): New function.
759 (regcache_cpy): Pass do_cooked_read to regcache_save and
760 regcache_restore.
761
8bedc050
AC
7622003-03-10 Andrew Cagney <cagney@redhat.com>
763
764 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
765 * gdbarch.h, gdbarch.c: Re-generate.
766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
767 * x86-64-tdep.h: Update.
768 * x86-64-tdep.c (x86_64_init_abi): Update.
769 * v850-tdep.c (v850_gdbarch_init): Update.
770 * sparc-tdep.c (sparc_gdbarch_init): Update.
771 * sh-tdep.c (sh_gdbarch_init): Update.
772 * s390-tdep.c (s390_gdbarch_init): Update.
773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
774 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
775 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
776 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
777 * mips-tdep.c (mips_gdbarch_init): Update.
778 * mcore-tdep.c (mcore_gdbarch_init): Update.
779 * m68k-tdep.c (m68k_gdbarch_init): Update.
780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
781 * ia64-tdep.c (ia64_gdbarch_init): Update.
782 * i386-tdep.c (i386_gdbarch_init): Update.
783 * i386-interix-tdep.c (i386_interix_init_abi): Update.
784 * hppa-tdep.c (hppa_gdbarch_init): Update.
785 * h8300-tdep.c (h8300_gdbarch_init): Update.
786 * frv-tdep.c (frv_gdbarch_init): Update.
787 * cris-tdep.c (cris_gdbarch_init): Update.
788 * avr-tdep.c (avr_gdbarch_init): Update.
789 * arm-tdep.c (arm_gdbarch_init): Update.
790 * alpha-tdep.c (alpha_gdbarch_init): Update.
791 * sh-tdep.c (sh_init_extra_frame_info): Update.
792 (sh64_init_extra_frame_info): Update.
793 * ns32knbsd-nat.c (frame_num_args): Update.
794 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
795 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
796 (xstormy16_frame_chain_valid): Update.
797 * vax-tdep.c (vax_saved_pc_after_call): Update.
798 * v850-tdep.c (v850_frame_chain): Update.
799 (v850_pop_frame): Update.
800 (v850_init_extra_frame_info): Update.
801 * sparc-tdep.c (setup_arbitrary_frame): Update.
802 * ns32k-tdep.c (umax_frame_num_args): Update.
803 * s390-tdep.c (s390_pop_frame_regular): Update.
804 * mn10300-tdep.c (mn10300_frame_chain): Update.
805 (mn10300_pop_frame_regular): Update.
806 (mn10300_init_extra_frame_info): Update.
807 * mips-tdep.c (mips_init_frame_pc_first): Update.
808 (mips_frame_chain): Update.
809 (mips_pop_frame): Update.
810 * mcore-tdep.c (mcore_frame_chain): Update.
811 (mcore_pop_frame): Update.
812 (mcore_init_extra_frame_info): Update.
813 * arch-utils.c (init_frame_pc_default): Update.
814 * m68k-tdep.c (isi_frame_num_args): Update.
815 (delta68_frame_num_args): Update.
816 (news_frame_num_args): Update.
817 * ia64-tdep.c (ia64_pop_frame_regular): Update.
818 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
819 (alpha_frame_chain): Update.
820 (alpha_pop_frame): Update.
821 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
822 (hppa_init_extra_frame_info): Update.
823 (hppa_frame_chain): Update.
824 (hppa_frame_chain_valid): Update.
825 * cris-tdep.c (cris_init_extra_frame_info): Update.
826 * avr-tdep.c (avr_init_extra_frame_info): Update.
827 * arm-tdep.c (arm_frame_chain_valid): Update.
828 (arm_init_extra_frame_info): Update.
829 (arm_pop_frame): Update.
830 * frame.c (frame_pc_unwind): Update.
831 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
832 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
833 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
834 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
835 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
836 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
837
12cc2063
AC
8382003-03-10 Andrew Cagney <cagney@redhat.com>
839
840 * gdbarch.sh (gdbarch_unwind_pc): New method.
841 * gdbarch.h, gdbarch.c: Regenerate.
842 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
843 but use read_pc and FRAME_SAVED_PC as fall backs.
844 (frame_saved_regs_pc_unwind): Delete function.
845 (trad_frame_unwinder): Update.
846 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
847 (struct frame_unwind): Update.
848 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
849 (dummy_frame_unwind): Update.
850 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
851 (sentinel_frame_unwinder): Update.
852 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
853 (d10v_frame_unwind): Update.
854 (d10v_unwind_pc): New function.
855 (d10v_gdbarch_init): Set unwind_pc.
856
ef840a37
AC
8572003-03-10 Andrew Cagney <cagney@redhat.com>
858
a2ce2e56
AC
859 * gdbarch.h: Re-generate.
860
ef840a37
AC
861 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
862 PC.
863 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
864 the PC register.
865
08f3424b
MK
8662003-03-08 Mark Kettenis <kettenis@gnu.org>
867
868 * gdbarch.sh (save_dummy_frame_tos): Add comment.
869
1248ede2
AC
8702003-03-08 Andrew Cagney <cagney@redhat.com>
871
872 * cli-out.c: Update copyright.
873 (cli_out_data): Define typedef. Use instead of ui_out_data.
874
f49bacc8
AC
8752003-03-08 Andrew Cagney <cagney@redhat.com>
876
877 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
878 the result.
879
9b05f993
AC
8802003-03-07 Andrew Cagney <cagney@redhat.com>
881
882 * gdbarch.sh: Don't generate two macro definitions when an
883 undefined macro taking no arguments.
884 * gdbarch.h: Regenerate.
885
166f4c7b
ML
8862002-03-07 Michal Ludvig <mludvig@suse.cz>
887
888 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
889 (x86_64_unwind_dummy_id): New functions.
890 (x86_64_init_abi): Register these two new functions.
891
6d686a84
ML
8922003-03-07 Michal Ludvig <mludvig@suse.cz>
893
894 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
895 (x86_64_skip_prologue): Move prologue detection to
896 separate function.
897 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
898
6314f104
AC
8992003-03-05 Andrew Cagney <cagney@redhat.com>
900
901 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
902 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
903 * frame.c (get_prev_frame): Restructure the frame ID unwind code
904 to use unwind_dummy_id when a dummy frame.
905 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
906 predicate.
907 * gdbarch.h, gdbarch.c: Regneerate.
908
ceea5145
AC
9092003-03-05 Andrew Cagney <cagney@redhat.com>
910
911 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
912 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
913 Do not use d10v_read_sp or d10v_read_fp when obtaining register
914 values.
915
0d843116
AC
9162003-03-05 Andrew Cagney <cagney@redhat.com>
917
918 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
919 (struct d10v_unwind_cache): Delete field "frameless". Replace
920 "next_addr" with "sp_offset". Add "r11_offset".
921 (d10v_frame_unwind_cache): Update.
922 (prologue_find_regs): Update. When "mv r11, sp", save the
923 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
924 RN was saved in r11_offset.
925
b2579786
AC
9262003-03-05 Andrew Cagney <cagney@redhat.com>
927
928 * frame.c (deprecated_update_frame_pc_hack): Also update the the
929 cached PC value in the next frame.
930
218e5956
AC
9312003-03-05 Andrew Cagney <cagney@redhat.com>
932
933 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
934 "id_unwind_cache" with "id".
935 (frame_id_unwind): Delete declaration.
936 * frame.c (frame_id_unwind): Delete function.
937 (get_prev_frame): Call the frame id unwind method directly. Store
938 the returned next frame's ID value in NEXT_FRAME. Note that there
939 is a problem with the wrong unwind ID being called with the wrong
940 unwind cache.
941
ed363b1b
DJ
9422003-03-05 Daniel Jacobowitz <drow@mvista.com>
943
944 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
945
fe1f4a5e
DJ
9462003-03-05 James Ingham <jingham@apple.com>
947 Daniel Jacobowitz <drow@mvista.com>
948
949 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
950 (auto_cp_abi): New variable.
951 (current_cp_abi, num_cp_abis): Make static.
952 (CP_ABI_MAX): Define.
953 (cp_abis): Turn into an array.
954 (value_virtual_fn_field): Fix formatting.
955 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
956 takes a pointer.
957 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
958 (list_cp_abis, _initialize_cp_abi): New functions.
959 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
960 declarations for cp_abis, num_cp_abis, current_cp_abi, and
961 switch_to_cp_abi. Update prototype for register_cp_abi.
962 * Makefile.in (cp-abi.o): Update dependencies.
963 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
964 instead of switch_to_cp_abi.
965 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
966 register_cp_abi.
967 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
968 register_cp_abi.
969 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
970
e4adbba9
DJ
9712003-03-05 Daniel Jacobowitz <drow@mvista.com>
972
973 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
974 * dwarf2loc.c: Include "regcache.h".
975 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
976 register_size.
977 * Makefile.in (dwarf2loc.o): Update dependencies.
978
91ccbfc1
TR
9792003-03-04 Theodore A. Roth <troth@openavr.org>
980
981 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
982 number of io registers reported by remote target is not a multiple of
983 step.
984
3d4e8fd2
DC
9852003-03-04 David Carlton <carlton@math.stanford.edu>
986
987 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
988 (lookup_symbol_aux_psymtabs): Update call to
989 lookup_partial_symbol.
990 (lookup_transparent_type, find_main_psymtab)
991 (make_symbol_overload_list): Ditto.
992
ed42d87b
KH
9932003-03-04 Kazu Hirata <kazu@cs.umass.edu>
994
995 * MAINTAINERS (Write after approval): Update my email address.
996
a0ed5532
AC
9972003-03-03 Andrew Cagney <cagney@redhat.com>
998
999 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1000 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1001 predicate. Replace MAX_REGISTER_RAW_SIZE.
1002 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1003 MAX_REGISTER_VIRTUAL_SIZE.
1004 * regcache.c (legacy_max_register_raw_size): New function.
1005 (legacy_max_register_virtual_size): New function.
1006 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1007 (MAX_REGISTER_RAW_SIZE): Define.
1008 (legacy_max_register_raw_size): Declare.
1009 (legacy_max_register_virtual_size): Declare.
1010 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1011 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1012 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1013 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1014 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1015 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1016 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1017 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1018 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1020 * vax-tdep.c (vax_gdbarch_init): Update.
1021 * v850-tdep.c (v850_gdbarch_init): Update.
1022 * sparc-tdep.c (sparc_gdbarch_init): Update.
1023 * sh-tdep.c (sh_gdbarch_init): Update.
1024 * s390-tdep.c (s390_gdbarch_init): Update.
1025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1028 * mips-tdep.c (mips_gdbarch_init): Update.
1029 * mcore-tdep.c (mcore_gdbarch_init): Update.
1030 * m68k-tdep.c (m68k_gdbarch_init): Update.
1031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1032 * ia64-tdep.c (ia64_gdbarch_init): Update.
1033 * i386-tdep.c (i386_gdbarch_init): Update.
1034 * hppa-tdep.c (hppa_gdbarch_init): Update.
1035 * h8300-tdep.c (h8300_gdbarch_init): Update.
1036 * frv-tdep.c (frv_gdbarch_init): Update.
1037 * cris-tdep.c (cris_gdbarch_init): Update.
1038 * avr-tdep.c (avr_gdbarch_init): Update.
1039 * arm-tdep.c (arm_gdbarch_init): Update.
1040 * alpha-tdep.c (alpha_gdbarch_init): Update.
1041 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1042 max_register_raw_size or max_register_virtual_size.
1043
8e437497
DC
10442003-03-03 David Carlton <carlton@math.stanford.edu>
1045
1046 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1047 SYMBOL_MATCHES_NAME, add comment.
1048 (SYMBOL_MATCHES_NATURAL_NAME): New.
1049 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1050 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1051 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1052 * symtab.c (lookup_partial_symbol): Use
1053 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1054 unhelpful comment.
1055 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1056 SYMBOL_MATCHES_NAME.
1057 Fix for PR c++/33.
1058
25120b0d
DC
10592003-03-03 David Carlton <carlton@math.stanford.edu>
1060
1061 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1062 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1063 by regexp matching against SYMBOL_NATURAL_NAME.
1064
78a11fb4
DC
10652003-03-03 David Carlton <carlton@math.stanford.edu>
1066
1067 * linespec.c (find_method): Extract code into collect_methods.
1068 (collect_methods): New.
1069
645dd519
MK
10702003-03-02 Mark Kettenis <kettenis@gnu.org>
1071
b4700d91
MK
1072 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1073 get_frame_base.
1074
645dd519
MK
1075 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1076 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1077
0aa7e1aa
SC
10782003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1079
1080 * arch-utils.c (generic_register_byte): Fix to use the loop index
1081 and not regnum when summing the size of all registers up to regnum.
1082
f30ee0bc
AC
10832003-03-01 Andrew Cagney <cagney@redhat.com>
1084
1085 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1086 FRAME_INIT_SAVED_REGS.
1087 * gdbarch.h, gdbarch.c: Regenerate.
1088 * stack.c (frame_info): Update.
1089 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1090 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1091 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1092 * ns32k-tdep.c (ns32k_pop_frame): Update.
1093 * mips-tdep.c (mips_pop_frame): Update.
1094 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1095 * ia64-tdep.c (ia64_frame_chain): Update.
1096 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1097 (ia64_frameless_function_invocation): Update.
1098 (ia64_init_extra_frame_info): Update.
1099 (ia64_pop_frame_regular): Update.
1100 * frame.h (struct frame_info): Update comment.
1101 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1102 * frame.c (frame_saved_regs_register_unwind): Update.
1103 (frame_saved_regs_register_unwind): Update.
1104 (deprecated_generic_get_saved_register): Update.
1105 * cris-tdep.c: Update comment.
1106 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1107 Rename macro.
1108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1109 * x86-64-tdep.c (x86_64_init_abi): Update.
1110 * vax-tdep.c (vax_gdbarch_init): Update.
1111 * v850-tdep.c (v850_gdbarch_init): Update.
1112 * sparc-tdep.c (sparc_gdbarch_init): Update.
1113 * sh-tdep.c (sh_gdbarch_init): Update.
1114 * s390-tdep.c (s390_gdbarch_init): Update.
1115 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1116 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1117 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1119 * mips-tdep.c (mips_gdbarch_init): Update.
1120 * mcore-tdep.c (mcore_gdbarch_init): Update.
1121 * m68k-tdep.c (m68k_gdbarch_init): Update.
1122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1123 * ia64-tdep.c (ia64_gdbarch_init): Update.
1124 * i386-tdep.c (i386_gdbarch_init): Update.
1125 * frv-tdep.c (frv_gdbarch_init): Update.
1126 * avr-tdep.c (avr_gdbarch_init): Update.
1127 * arm-tdep.c (arm_gdbarch_init): Update.
1128 * alpha-tdep.c (alpha_gdbarch_init): Update.
1129
42fa7c0f
AC
11302003-03-01 Andrew Cagney <cagney@redhat.com>
1131
1132 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1133 option enum and switch. When no windows, set the interpreter to
1134 INTERP_CONSOLE.
1135
49c7e338
AC
11362003-03-01 Andrew Cagney <cagney@redhat.com>
1137
1138 * main.c (captured_main): Replace magic option characters with an
1139 enum.
1140
e9582e71
AC
11412003-03-01 Andrew Cagney <cagney@redhat.com>
1142
1143 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1144 INIT_EXTRA_FRAME_INFO.
1145 * gdbarch.h, gdbarch.c: Regenerate.
1146 * arm-tdep.c: Update comments.
1147 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1148 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1149 * frame.h, avr-tdep.c: Ditto.
1150 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1151 (create_new_frame, legacy_get_prev_frame): Ditto.
1152 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1153 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1155 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1156 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1157 * v850-tdep.c (v850_gdbarch_init): Ditto.
1158 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1159 * sh-tdep.c (sh_gdbarch_init): Ditto.
1160 * s390-tdep.c (s390_gdbarch_init): Ditto.
1161 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1162 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1163 * mips-tdep.c (mips_gdbarch_init): Ditto.
1164 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1166 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1167 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1168 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1169 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1170 * frv-tdep.c (frv_gdbarch_init): Ditto.
1171 * cris-tdep.c (cris_gdbarch_init): Ditto.
1172 * avr-tdep.c (avr_gdbarch_init): Ditto.
1173 * arm-tdep.c (arm_gdbarch_init): Ditto.
1174 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1176
35cac7cf
AC
11772003-03-01 Andrew Cagney <cagney@redhat.com>
1178
1179 * gdbarch.sh (register_type): New function with predicate.
1180 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1181 * gdbarch.h, gdbarch.c: Re-generate.
1182 * arch-utils.c (generic_register_byte): Use generic_register_size.
1183 (generic_register_size): When available, use
1184 gdbarch_register_type.
1185 * regcache.c (init_regcache_descr): When available, initialize the
1186 register type array using gdbarch_register_type. If the
1187 architecture supplies gdbarch_register_type, do not use the legacy
1188 regcache layout.
1189 * d10v-tdep.c (d10v_register_type): Replace
1190 d10v_register_virtual_type.
1191 (d10v_gdbarch_init): Set register_type instead of
1192 register_virtual_type.
1193
7b83296f
AC
11942003-03-01 Andrew Cagney <cagney@redhat.com>
1195
1196 * Makefile.in (ax-gdb.o): Update dependencies.
1197 * ax-gdb.c: Include "regcache.h".
1198 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1199 * findvar.c (value_of_register): Ditto.
1200 * infcmd.c (default_print_registers_info): Ditto.
1201
eadc1c87
MK
12022003-03-01 Mark Kettenis <kettenis@gnu.org>
1203
1204 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1205 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1206
14143612
MK
12072003-03-01 Mark Kettenis <kettenis@gnu.org>
1208
1209 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1210 of STREQ.
1211
a55cc764
DJ
12122003-02-28 Daniel Jacobowitz <drow@mvista.com>
1213
1214 * Makefile.in (dwarf2loc.o): Update dependencies.
1215 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1216 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1217 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1218 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1219 (locexpr_tracepoint_var_ref): New function.
1220 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1221
08a617da
AC
12222003-02-28 Andrew Cagney <cagney@redhat.com>
1223
1224 * regcache.c (register_size): New function.
1225 * regcache.h (register_size): Declare
1226 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1227 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1228
4224873a
DC
12292003-02-28 David Carlton <carlton@math.stanford.edu>
1230
1231 * linespec.c (decode_compound): Extract code into find_method.
1232 (find_method): New.
1233
ccdc5d7f
JB
12342003-02-28 J. Brobecker <brobecker@gnat.com>
1235
1236 * Makefile.in: Add rules to build and link in observer.o.
1237
974e8ced
JB
12382003-02-27 J. Brobecker <brobecker@gnat.com>
1239
1240 * observer.c: Minor comments edits.
1241
7a28f973
JB
12422003-02-27 J. Brobecker <brobecker@gnat.com>
1243
1244 * observer.h, observer.c: New file.
1245
27cddce2
AC
12462003-02-27 Andrew Cagney <cagney@redhat.com>
1247
1248 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1249
b94a41a1
SC
12502003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1251
1252 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1253 (M6812_OP_STS_EXT): Likewise.
1254 (m6811_prologue): Use the above to recognize prologue.
1255 (m6812_prologue): Likewise.
1256
c8be8951
DC
12572003-02-27 David Carlton <carlton@math.stanford.edu>
1258
1259 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1260 SYMBOL_PRINT_NAME.
1261 (compare_psymbols): Ditto.
1262 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1263
d05bb1fc
MS
12642003-02-27 Michael Snyder <msnyder@redhat.com>
1265
4e845cd3
MS
1266 * f-lang.c (build_fortran_types): New function.
1267 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
1268 * doublest.c (extract_floating): Fix warning text.
1269
f3824013
AC
12702003-02-27 Andrew Cagney <cagney@redhat.com>
1271
1272 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1273 predicate. Replaces PUSH_DUMMY_FRAME.
1274 * gdbarch.h, gdbarch.c: Regnerate.
1275 * valops.c (hand_function_call): Update. Call
1276 generic_push_dummy_frame directly.
1277 * vax-tdep.c (vax_gdbarch_init): Update.
1278 * sparc-tdep.c (sparc_gdbarch_init): Update.
1279 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1280 * m68k-tdep.c (m68k_gdbarch_init): Update.
1281 * hppa-tdep.c (hppa_gdbarch_init): Update.
1282 * alpha-tdep.c (alpha_gdbarch_init): Update.
1283 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1284 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1285 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1287 push_dummy_frame to generic_push_dummy_frame.
1288 * v850-tdep.c (v850_gdbarch_init): Ditto.
1289 * sh-tdep.c (sh_gdbarch_init): Ditto.
1290 * s390-tdep.c (s390_gdbarch_init): Ditto.
1291 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1292 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1293 * mips-tdep.c (mips_gdbarch_init): Ditto.
1294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1297 * i386-tdep.c (i386_gdbarch_init): Ditto.
1298 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1299 * frv-tdep.c (frv_gdbarch_init): Ditto.
1300 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1301 * cris-tdep.c (cris_gdbarch_init): Ditto.
1302 * avr-tdep.c (avr_gdbarch_init): Ditto.
1303 * arm-tdep.c (arm_gdbarch_init): Ditto.
1304
ad188201
KB
13052003-02-26 Kevin Buettner <kevinb@redhat.com>
1306
1307 * mips-tdep.c (show_mips_abi): New function.
1308 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1309 command ``show mips abi''.
1310
6b37567a
JJ
13112003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1312
1313 From Elena Zannoni <ezannoni@redhat.com>
1314 * dbxread.c (process_one_symbol): Only record line 0 if one or
1315 more sline entries have been seen for the function.
1316
d3e0a5bf
MC
13172003-02-26 Michael Chastain <mec@shout.net>
1318
1319 * configure: Regenerate with autoconf 000227.
1320
18972eea
MC
13212003-02-26 Michael Chastain <mec@shout.net>
1322
1323 Close PR build/660.
1324 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1325 for old libc5/glibc.
1326 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1327
0bbde931
KW
13282003-02-26 Kris Warkentin <kewarken@qnx.com>
1329
1330 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1331 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1332
27ca5dad
MC
13332003-02-26 Michael Chastain <mec@shout.net>
1334
1335 * configure.in: New variable HAVE_UINTPTR_T.
1336 * configure, config.in: Regenerated.
1337
6f88d630
DJ
13382003-02-26 Daniel Jacobowitz <drow@mvista.com>
1339
1340 Fix PR build/1097.
1341 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1342
b14185ce
AC
13432003-02-25 Andrew Cagney <cagney@redhat.com>
1344
1345 * frame.c (get_prev_frame): Add comment on check for
1346 inside_entry_func. Only check for inside_entry_file when not a
1347 dummy and not a sentinel. Check that the new frame is not inner
1348 to the old frame.
1349
ac2bd0a9
AC
13502003-02-25 Andrew Cagney <cagney@redhat.com>
1351
1352 * frame.c (frame_debug): New variable.
1353 (_initialize_frame): Add "set/show debug frame" command.
1354 (get_prev_frame): When frame_debug, print reason why unwind
1355 failed.
1356
b18a0fd2
MC
13572003-02-25 Michael Chastain <mec@shout.net>
1358
1359 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1360 to avoid uintptr_t definition problems.
1361
22abf04a
DC
13622003-02-25 David Carlton <carlton@math.stanford.edu>
1363
1364 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1365 (SYMBOL_LINKAGE_NAME): Ditto.
1366 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1367 SYMBOL_LINKAGE_NAME.
1368 (struct general_symbol_info): Expand comment.
1369 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1370 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1371 (SYMBOL_MATCHES_REGEXP): Ditto.
1372 * symtab.c (symbol_natural_name): New function.
1373 * objfiles.h: Replace all uses of SYMBOL_NAME by
1374 DEPRECATED_SYMBOL_NAME.
1375 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1376 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1377 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1378 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1379 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1380 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1381 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1382 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1383 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1384 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1385 * ada-exp.y: Ditto.
1386 * ada-exp.y: Update copyright.
1387 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1388 * cp-valprint.c: Ditto.
1389
1a5848f6
JJ
13902003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1391
1392 * infptrace.c (detach): Do not flag error if ptrace detach fails
1393 and errno is set to ESRCH.
1394
7343d46a
AC
13952003-02-24 Andrew Cagney <cagney@redhat.com>
1396
1397 * infptrace.c (udot_info): Change type of udot_off to long. Use
1398 paddr when printing udot_off's value.
1399
49fa1dc2
DC
14002003-02-24 David Carlton <carlton@math.stanford.edu>
1401
1402 * symtab.c (make_symbol_overload_list): Only read in partial
1403 symtabs containing a matching partial symbol.
1404
0fe19209
DC
14052003-02-24 David Carlton <carlton@math.stanford.edu>
1406
1407 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1408 do the comparison, not strcmp.
1409 * symfile.c (compare_psymbols): Ditto.
1410 * defs.h: Declare strcmp_iw_ordered.
1411 * utils.c (strcmp_iw_ordered): New function.
1412
8e3ee7b5
JB
14132003-02-24 Jim Blandy <jimb@redhat.com>
1414
1415 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1416 support, shared libs): Remove my name from here, to better reflect
1417 reality.
1418
7df1a324
KW
14192003-02-24 Kris Warkentin <kewarken@qnx.com>
1420
1421 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1422 (target_ops): Add to_have_continuable_watchpoint.
1423 * target.c (update_current_target): Add INHERIT line for
1424 to_have_continuable_watchpoint.
1425 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1426 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1427 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1428 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1429
d1c76907
EZ
14302003-02-24 Elena Zannoni <ezannoni@redhat.com>
1431
1432 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1433 maintainership.
1434
2610b0bf
KW
14352003-02-24 Kris Warkentin <kewarken@qnx.com>
1436
f46169db
KW
1437 * solib.c (solib_open): Call target defined search function after
1438 failing with solib-search-path.
1439 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1440 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1441
9a3c34fe
KW
14422003-02-24 Kris Warkentin <kewarken@qnx.com>
1443
f46169db 1444 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1445
2417dd25
SC
14462003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1447
1448 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1449
b631436b
SC
14502003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1451
1452 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1453 (m68hc11_add_reggroups): New function.
1454 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1455 (m68hc11_gdbarch_init): Install the reggroups.
1456 (_initialize_m68hc11_tdep): Initialize them.
1457
0aa8c1e4
JW
14582003-02-21 James E Wilson <wilson@tuliptree.org>
1459
1460 * MAINTAINERS: Update my email address.
1461
50ceaba5
DC
14622003-02-21 David Carlton <carlton@math.stanford.edu>
1463
1464 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1465
4c2df51b
DJ
14662003-02-21 Daniel Jacobowitz <drow@mvista.com>
1467
1468 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1469 * symtab.h: Add opaque declarations of struct axs_value and
1470 struct agent_expr.
1471 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1472 (struct location_funcs): New type.
1473 (struct symbol): Add "loc" to aux_value.
1474 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1475 * dwarf2read.c: Include "dwarf2expr.h".
1476 (dwarf2_symbol_mark_computed): New function.
1477 (read_func_scope): Use it.
1478 (var_decode_location): New function.
1479 (new_symbol): Use it.
1480 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1481
1482 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1483 (dwarf2expr_h, dwarf2loc_h): New variables.
1484 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1485 (dwarf2expr.o, dwarf2loc.o): New rules.
1486 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1487 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1488 LOC_COMPUTED_ARG.
1489 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1490 * m2-exp.y (yylex): Likewise.
1491 * printcmd.c (address_info, print_frame_args): Likewise.
1492 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1493 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1494 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1495 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1496 * symtab.c (lookup_block_symbol): Likewise.
1497
5784d15e
AF
14982003-02-20 Adam Fedor <fedor@gnu.org>
1499
1500 * symtab.h: Remove objc_specific struct
1501 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1502 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1503 Have language_objc use cplus_specific struct.
1504
d4cad8db
TT
15052003-02-20 Tom Tromey <tromey@redhat.com>
1506
1507 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1508 TYPE_NAME, when printing a String value. PR java/1075.
1509
2f9a90b4
AF
15102003-02-20 Adam Fedor <fedor@gnu.org>
1511
d38074a8 1512 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1513 * objc-lang.c (find_methods): Make static.
1514
6f17862b
CF
15152003-02-20 Christopher Faylor <cgf@redhat.com>
1516
1517 * win32-nat.c (get_image_name): Check return value from
1518 ReadProcessMemory.
1519 (child_xfer_memory): Ditto.
1520
715d1656
AO
15212003-02-20 Alexandre Oliva <aoliva@redhat.com>
1522
1523 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1524 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1525 '${exec_prefix}' (in addition to the expansion thereof) as
1526 relocatable.
1527 * configure: Rebuilt.
1528
b1262a02
DC
15292003-02-20 David Carlton <carlton@math.stanford.edu>
1530
1531 * symtab.c (search_symbols): Revert the search_symbols part of my
1532 2002-12-23 patch. Add comment.
1533
7134143f
DJ
15342002-02-20 Daniel Jacobowitz <drow@mvista.com>
1535
1536 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1537 * dbxread.c (elfstab_build_psymtabs): Don't call
1538 install_minimal_symbols.
1539 (stabsect_build_psymtabs): Likewise.
1540 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1541 earlier.
1542 * somread.c (som_symfile_read): Call install_minimal_symbols
1543 and do_cleanups earlier.
1544 * nlmread.c (nlm_symfile_read): Likewise.
1545 * mdebugread.c (elfmdebug_build_psymtabs): Call
1546 install_minimal_symbols and make appropriate cleanups.
1547
cf466558
KB
15482003-02-20 Kevin Buettner <kevinb@redhat.com>
1549
1550 * solib.c (reload_shared_libraries): New function.
1551 (_initialize_solib): Add callbacks for ``set solib-search-path''
1552 and ``set solib-absolute-prefix''.
1553
de5ad195
DC
15542003-02-20 David Carlton <carlton@math.stanford.edu>
1555
1556 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1557 expand comment.
1558 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1559 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1560 * ada-typeprint.c (ada_typedef_print): Ditto.
1561 * ax-gdb.c (gen_var_ref): Ditto.
1562 * breakpoint.c (print_one_breakpoint): Ditto.
1563 * buildsym.c (finish_block): Ditto.
1564 * c-valprint.c (c_val_print): Ditto.
1565 * expprint.c (print_subexp): Ditto.
1566 * findvar.c (locate_var_value): Ditto.
1567 * infcmd.c (jump_command): Ditto.
1568 * linespec.c (decode_line_2, decode_compound): Ditto.
1569 * maint.c (maintenance_translate_address): Ditto.
1570 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1571 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1572 Ditto.
1573 * p-valprint.c (pascal_val_print): Ditto.
1574 * stabsread.c (define_symbol): Ditto.
1575 * stack.c (print_frame, frame_info, print_block_frame_locals)
1576 (print_frame_arg_vars, return_command): Ditto.
1577 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1578 * symmisc.c (print_symbol): Ditto.
1579 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1580 (compare_search_syms, print_symbol_info, print_msymbol_info)
1581 (rbreak_command): Ditto.
1582 * tracepoint.c (tracepoints_info): Ditto.
1583 * typeprint.c (typedef_print): Ditto.
1584 * valops.c (value_of_variable, hand_function_call): Ditto.
1585 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1586 * ada-typeprint.c: Update Copyright.
1587 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1588 * tracepoint.c, cli/cli-cmds.c: Ditto.
1589
f796e4be
KB
15902003-02-20 Kevin Buettner <kevinb@redhat.com>
1591
1592 * frame.c (generic_unwind_get_saved_register): Make non-static.
1593 * frame.h (generic_unwind_get_saved_register): Declare.
1594 * mips-tdep.c (read_next_frame_reg): Fetch register from
1595 current regcache when frame is NULL.
1596 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1597 that must be NULL.
1598 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1599 instead of frame_register_unwind().
1600
836cc9f4
AC
16012003-02-20 Andrew Cagney <ac131313@redhat.com>
1602
1603 * remote-sim.c (gdbsim_insert_breakpoint)
1604 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1605 code.
1606
501eef12
AC
16072003-02-20 Andrew Cagney <ac131313@redhat.com>
1608
1609 * remote.c (_initialize_remote): Add commands "set/show remote
1610 hardware-watchpoint-limit" and "set/show remote
1611 hardware-breakpoint-limit".
1612 (remote_hw_watchpoint_limit): Initialize to -1.
1613 (remote_hw_breakpoint_limit): Ditto.
1614 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1615
1b6bc7e0
CF
16162003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1617
1618 * coff-pe-read.c: New file - support reading of minimal symbols from a
1619 portable executable using the export table.
1620 * coff-pe-read.h: New file.
1621 * coffread.c: Include coff-pe-read.h.
1622 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1623 debugging symbols found.
1624 * Makefile.in (SFILES): Add coff-pe-read.o.
1625 (coff_pe_read_h): Define.
1626 (COMMON_OBS): Add coff-pe-read.o.
1627 (coffread.o): Add coff_pe_read_h dependency.
1628 (coff-pe-read.o): New target.
1629
fe898f56
DC
16302003-02-19 David Carlton <carlton@math.stanford.edu>
1631
1632 * Makefile.in (SFILES): Add block.c.
1633 (block_h): New.
1634 (COMMON_OBS): Add block.o.
1635 (block.o): New.
1636 (x86-64-tdep.o): Add $(block_h).
1637 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1638 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1639 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1640 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1641 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1642 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1643 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1644 * value.h: Add opaque declaration for struct block.
1645 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1646 * ada-lang.h: Ditto.
1647 * x86-64-tdep.c: #include "block.h"
1648 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1649 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1650 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1651 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1652 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1653 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1654 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1655 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1656 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1657 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1658 * symtab.c (block_function): Ditto.
1659 (contained_in): Ditto.
1660 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1661 block.h. Add opaque declaration for struct block.
1662 * symtab.h: Move block_function and contained_in declarations to
1663 block.h. Add opaque declarations for struct block, struct
1664 blockvector.
1665 (struct block): Move to block.h.
1666 (struct blockvector): Ditto.
1667 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1668 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1669 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1670 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1671 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1672 Ditto.
1673 * block.c: New file.
1674 * block.h: New file.
1675
173345b5
TR
16762003-02-19 Theodore A. Roth <troth@openavr.org>
1677
1678 * avr-tdep.c (avr_extract_return_value): Remove function.
1679 (avr_store_return_value): Remove function.
1680 (avr_extract_struct_value_address): Remove function.
1681 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1682
338ef23d
AC
16832003-02-19 Andrew Cagney <ac131313@redhat.com>
1684
1685 * rs6000-tdep.c: Include "gdb_assert.h".
1686 (registers_e500): Add "acc" and "spefscr".
1687 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1688 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1689 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1690 really is "r0".
1691 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1692
5412f5f3
KS
16932003-02-18 Keith Seitz <keiths@redhat.com>
1694
1695 * Makefile.in: Add gdbtk-interps.c.
1696
881324eb
KB
16972003-02-18 Kevin Buettner <kevinb@redhat.com>
1698
1699 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1700 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1701
6a2f5abf
AC
17022003-02-18 Andrew Cagney <cagney@redhat.com>
1703
1704 * symtab.h (struct objfile): Add opaque declaration.
1705
54c7009d
EZ
17062003-02-18 Elena Zannoni <ezannoni@redhat.com>
1707
1708 From Jim Ingham <jingham@apple.com>:
1709 * dbxread.c (process_one_symbol): Use last_function_start rather
1710 than function_start_offset to find the real beginning of the
1711 current function. The latter is just the text section offset on
1712 some systems, the former is always the real function start.
1713
7ee6d7eb
AC
17142003-02-17 Andrew Cagney <cagney@redhat.com>
1715
1716 * configure.in: Revert ${target} != ${host}.
1717
2846da9b
AC
17182003-02-17 Andrew Cagney <ac131313@redhat.com>
1719
1720 * configure.in (Makefile): Use the test ${target} != ${host},
1721 instead of the absence of the "nm.h" file, to determine of the
1722 configuration non-native.
1723 * configure: Regenerate.
1724
3b27aeea
EZ
17252003-02-14 Elena Zannoni <ezannoni@redhat.com>
1726
1727 From Brian Ford <ford@vss.fsi.com>
1728
1729 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1730 conditionalize tui_active test.
1731 (lookup_cmd_1): Ditto.
1732
b0b1c2c0
MK
17332003-02-14 Mark Kettenis <kettenis@gnu.org>
1734
1735 * configure.in: Add check for _etext.
1736 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1737 available.
1738 * config.in, configure: regenerated.
1739
8f05cde5
DJ
17402003-02-14 Daniel Jacobowitz <drow@mvista.com>
1741
1742 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1743
021e7609
AC
17442003-02-14 Andrew Cagney <ac131313@redhat.com>
1745
1746 * main.c (tui_version): Delete variable.
1747 (captured_main): When --tui, set interpreter_p to "tui" instead of
1748 enabling tui_version.
1749 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1750 tui_version.
1751 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1752 * cli/cli-cmds.c (disassemble_command): Ditto.
1753 * defs.h (tui_version): Delete declaration.
1754 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1755 (tui-interp.o): Add rules.
1756 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1757
e325dcec
CF
17582003-02-14 Christopher Faylor <cgf@redhat.com>
1759
36ffb041 1760 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
1761 just-loaded dll.
1762
c4f90d87
JM
17632003-02-12 Jason Molenda (jmolenda@apple.com)
1764
1765 * symmisc.c (print_objfile_statistics): Include information about
1766 the number of psymtabs and symtabs in each object file.
1767
e46e5ccd
KS
17682003-02-13 Keith R Seitz <keiths@redhat.com>
1769
1770 * main.h (struct captured_main_args): Add interpreter_p.
1771 * main.c (captured_main): Initialize interpreter_p from context.
1772 * gdb.c (main): Set interpreter_p argument.
1773 * Makefile.in (gdb.o): Add dependency for interps.h.
1774
fe97fe9c
AC
17752003-02-12 Andrew Cagney <ac131313@redhat.com>
1776
1777 * event-top.c (cli_command_loop): Delete declaration.
1778 (_initialize_event_loop): Delete function setting event_loop_hook.
1779 * event-top.h (cli_command_loop): Declare. Update copyright.
1780 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1781 * interps.c (current_interp_command_loop): When event_loop_p, call
1782 cli_command_loop.
1783
1cdac4ef
AC
17842003-02-12 Andrew Cagney <ac131313@redhat.com>
1785
1786 * interps.h (interp_command_loop_ftype): Change return type to
1787 void.
1788
48037ead
ML
17892003-02-12 Michal Ludvig <mludvig@suse.cz>
1790
1791 * x86-64-tdep.c (x86_64_extract_return_value)
1792 (x86_64_store_return_value): Use regcache instead of regbuf.
1793 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1794 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1795
033afc63
AC
17962003-02-11 Andrew Cagney <ac131313@redhat.com>
1797
1798 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1799 * aclocal.m4: Regenerate.
1800 * configure: Regenerate.
1801
1802 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1803 TCL_LD_SEARCH_FLAGS.
1804
40d02bca
ML
18052003-02-10 Michal Ludvig <mludvig@suse.cz>
1806
1807 * dwarf2cfi.c: Reindented.
1808
11308a41
AC
18092003-02-09 Andrew Cagney <ac131313@redhat.com>
1810
1811 * interps.c (clear_interpreter_hooks): Convert function definition
1812 to ISO C.
1813
e1c1c0f6
DC
18142003-02-07 David Carlton <carlton@math.stanford.edu>
1815
1816 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1817
ab5d3da6
KB
18182003-02-07 Kevin Buettner <kevinb@redhat.com>
1819
1820 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1821 (struct type): ...to here.
1822 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1823 field.
1824 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1825 (replace_type): Set length on all type variants for a given type.
1826
b8a92b82
AC
18272003-02-07 Andrew Cagney <ac131313@redhat.com>
1828
1829 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1830 <sys/stat.h>.
1831 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1832
5cb316ef
AC
18332003-02-06 Andrew Cagney <ac131313@redhat.com>
1834
2555fe1a
AC
1835 * Makefile.in (symm-nat.o): Update dependencies.
1836 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1837 (lynx-nat.o, ia64-linux-nat.): Ditto.
1838 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1839 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1840 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1841
44270758
AC
1842 * Makefile.in (inflow_h): Define.
1843 (procfs.o, inflow.o, procfs.o): Update dependencies.
1844 * inftarg.c (child_stop): Delete extern declaration of
1845 inferior_process_group. Include "inflow.h".
1846 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1847 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1848 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1849 (our_process_group, inferior_process_group): Extern declarations.
1850
df8f7274
AC
1851 * procfs.c: Include "gdb_assert.h".
1852
5cb316ef
AC
1853 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1854 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1855 * jv-typeprint.c (java_type_print_base): Ditto.
1856 * typeprint.c (typedef_print): Eliminate STREQ.
1857 * cli/cli-script.c (define_command, define_command): Ditto.
1858 * main.c (captured_main): Ditto.
1859 * values.c (lookup_internalvar): Ditto.
1860 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1861 within `if' conditional.
1862 * linespec.c (decode_line_2): Ditto.
1863 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1864 (bfd_openw_with_cleanup): Ditto.
1865
2a28ccea
MK
18662003-02-07 Mark Kettenis <kettenis@gnu.org>
1867
1868 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1869 legacy_extract_return_value and store_return_value to
1870 legacy_return_value.
1871
786b8124
CF
18722003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1873
1874 * win32-nat.c (get_relocated_section_addrs): New function. Find
1875 section load addresses for symbol handling in relocated DLLs.
1876 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1877
b871e4ec
FF
18782003-02-05 Fred Fish <fnf@intrinsity.com>
1879
1880 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1881 '=' and '!='.
1882 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1883 with '&' and '=='.
1884 (angel_RDI_info): Ditto.
1885 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1886 with '&' and '!='.
1887 (threads_continue_all_with_signals): Ditto.
1888
4389a95a
AC
18892003-02-05 Jim Ingham <jingham@apple.com>
1890 Keith Seitz <keiths@redhat.com>
1891 Elena Zannoni <ezannoni@redhat.com>
1892 Andrew Cagney <ac131313@redhat.com>
1893
1894 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1895 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1896 (SUBDIR_MI_OBS): Add "mi-interp.o".
1897 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1898 (SFILES): Add "interps.c".
1899 (COMMON_OBS): Add "interps.o".
1900 (interps_h, mi_main_h): Define.
1901 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1902 (mi-main.o, main.o, event-top.o): Update dependencies.
1903 * cli/cli-interp.c: New file.
1904 * interps.h, interps.c: New files.
1905 * top.c: (gdb_init): Don't install the default interpreter, handed
1906 by captured_main.
1907 * main.c: Include "interps.h".
1908 (interpreter_p): Note that it should malloc'ed.
1909 (captured_command_loop): Call current_interp_command_loop.
1910 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1911 xfree and xstrdup when updating interpreter_p. Install the
1912 default interpreter. Add hack to stop mi1's copyright notice
1913 being encoded.
1914 * event-top.h (gdb_setup_readline): Declare.
1915 (gdb_disable_readline): Declare.
1916 * event-top.c: Include "interps.h".
1917 (display_gdb_prompt): Call current_interp_display_prompt_p.
1918 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1919 gdb_stdlog, and gdb_stdtarg.
1920 (_initialize_event_loop): Don't call gdb_setup_readline.
1921 * cli-out.c (cli_out_set_stream): New function.
1922 * cli-out.h (cli_out_set_stream): Declare.
1923
ff3b5810
MK
19242003-02-06 Mark Kettenis <kettenis@gnu.org>
1925
1926 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1927 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1928 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1929 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1930 config/i386/i386v42mp.mt: Removed.
1931
5b729aa5
MK
19322003-02-05 Mark Kettenis <kettenis@gnu.org>
1933
1934 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1935 GDB_OSABI_SOLARIS.
1936
8cc15142
MC
19372003-02-05 Michael Chastain <mec@shout.net>
1938
1939 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1940 2.12.1 and earlier versions.
1941
5aa5d4b9
AC
19422003-02-05 Andrew Cagney <ac131313@redhat.com>
1943
1944 Remove orphaned hosts, targets and files.
1945 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1946 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1947 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1948 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1949 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1950 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1951 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1952 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1953 * config/sparc/tm-sp64sim.h: Delete.
1954 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1955 hosts.
1956 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1957 mips*-dec-mach3* targets.
1958
b68767c1
MC
19592003-02-04 Michael Chastain <mec@shout.net>
1960
1961 * NEWS: Fix typo: sepcifying -> specifying.
1962
5ae7ca1d
MC
19632003-02-04 Michael Chastain <mec@shout.net>
1964
1965 * dwarfread.c: Add documentation on the state of dwarf-1,
1966 looking towards obsoletion.
1967
d08a4280
MC
19682003-02-03 Michael Chastain <mec@shout.net>
1969
1970 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1971 gdb/testsuite/gdb.c++/pr-1023.exp.
1972
e9be73e4
AC
19732003-02-04 Andrew Cagney <ac131313@redhat.com>
1974
1975 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1976 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1977
1978 * utils.c (init_page_info): Delete reference to MPW in comments.
1979 * main.c (captured_main): Delete #ifdef MPW.
1980
05d57f6f
AC
19812003-02-04 Andrew Cagney <ac131313@redhat.com>
1982
1983 * NEWS: Note that the m32r-*-elf* is obsolete.
1984 * monitor.c (monitor_expect): Obsolete reference to m32r.
1985 * configure.tgt: Mark m32r-*-elf* as obsolete.
1986 * MAINTAINERS: Mark m32k as obsolete.
1987 * m32r-rom.c: Obsolete file.
1988 * config/m32r/m32r.mt: Obsolete file.
1989 * config/m32r/tm-m32r.h: Obsolete file.
1990 * m32r-stub.c: Obsolete file.
1991 * m32r-tdep.c: Obsolete file.
1992
8b0e5691
AC
19932003-02-04 Andrew Cagney <ac131313@redhat.com>
1994
1995 * NEWS: Mention that the z8k-zilog-none is obsolete.
1996 * MAINTAINERS: Mark z8k as obsolete.
1997 * configure.tgt: Obsolete the z8k-*-coff* target.
1998 * config/z8k/z8k.mt: Obsolete file.
1999 * config/z8k/tm-z8k.h: Obsolete file.
2000 * z8k-tdep.c: Obsolete file.
2001
67f16606
AC
20022003-02-04 Andrew Cagney <ac131313@redhat.com>
2003
2004 * NEWS: Mention that the mn10200-elf is obsolete.
2005 * configure.tgt: Obsolete mn10200-*-* target.
2006 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2007 mention that the mn10200 is obsolete.
2008 * breakpoint.h: Ditto.
2009 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2010 * config/mn10200/mn10200.mt: Obsolete file.
2011 * config/mn10200/tm-mn10200.h: Obsolete file.
2012 * mn10200-tdep.c: Obsolete file.
2013
fd2299bd
AC
20142003-02-04 Andrew Cagney <ac131313@redhat.com>
2015
2016 * MAINTAINERS: Mark h8500 as obsolete.
2017 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2018 * findvar.c (value_from_register): Ditto.
2019 * h8500-tdep.c: Mark file as obsolete.
2020 * config/h8500/h8500.mt: Ditto.
2021 * config/h8500/tm-h8500.h: Ditto.
2022 * NEWS: Mention that h8500 is obsolete.
2023
eb9a305d
DC
20242003-02-04 David Carlton <carlton@math.stanford.edu>
2025
2026 * objfiles.c (allocate_objfile): Always set name. Add comment at
2027 start of function.
2028 * jv-lang.c (get_dynamics_objfile): Add comment.
2029
406fc7fb
DC
20302003-02-04 David Carlton <carlton@math.stanford.edu>
2031
2032 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2033 * printcmd.c (build_address_symbolic): Replace uses of
2034 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2035 SYMBOL_NAME, and asm_demangle.
2036 Update copyright.
2037
93d91629
DC
20382003-02-04 David Carlton <carlton@math.stanford.edu>
2039
2040 * linespec.c (decode_compound): Extract code into
2041 lookup_prefix_sym.
2042 (lookup_prefix_sym): New function.
2043
1c5cb38e
DC
20442003-02-04 David Carlton <carlton@math.stanford.edu>
2045
2046 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2047 FLOAT_COERCION_BADNESS.
2048 * gdbtypes.c (rank_one_type): Replace all uses of
2049 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2050
0cf824c9
JB
20512003-02-04 Jim Blandy <jimb@redhat.com>
2052
2053 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2054 section, let dwarf_macinfo_section point to it, not
2055 dwarf_loc_section.
2056
a2d356b0
DJ
20572003-02-04 Daniel Jacobowitz <drow@mvista.com>
2058
2059 Pointed out by Anton Blanchard <anton@samba.org>.
2060 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2061 (ppc_linux_at_sigtramp_return_path): Use it.
2062
2de7ced7
DJ
20632003-02-04 Daniel Jacobowitz <drow@mvista.com>
2064
2065 * defs.h (streq): Add prototype.
2066 * utils.c (streq): New function.
2067
2068 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2069 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2070 * mdebugread.c (new_symbol): Likewise.
2071 * stabsread.c (define_symbol): Likewise.
2072 * coffread.c (process_coff_symbol): Likewise.
2073 * dwarfread.c (new_symbol): Likewise.
2074
2075 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2076 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2077 here.
2078 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2079 SYMBOL_INIT_DEMANGLED_NAME.
2080 * objfiles.c: Include "hashtab.h".
2081 (allocate_objfile): Call htab_set_functions_ex for the
2082 demangled_names_hash.
2083 (free_objfile): Call htab_delete for the demangled_names_hash.
2084 * objfiles.h (struct htab): Add declaration.
2085 (struct objfile): Add demangled_names_hash.
2086 * symfile.c: Include "hashtab.h".
2087 (reread_symbols): Call htab_delete for the demangled_names_hash.
2088 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2089 SYMBOL_NAME in the bcache.
2090 * symtab.c: Include "hashtab.h". Update comments.
2091 (create_demangled_names_hash, symbol_set_names): New functions.
2092 (symbol_find_demangled_name): New function, broken out from
2093 symbol_init_demangled_names.
2094 (symbol_init_demangled_names): Use it.
2095 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2096 (SYMBOL_SET_NAMES): New macro.
2097 (symbol_set_names): Add prototype.
2098
15831452
JB
20992003-02-03 Jim Blandy <jimb@redhat.com>
2100
2101 Use a single, consistent representation for an empty minimal
2102 symbol table in an objfile.
2103 * objfiles.c (terminate_minimal_symbol_table): New function.
2104 (allocate_objfile): Call it.
2105 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2106 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2107 non-NULL.
2108 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2109 objfile has minimal symbols, compare minimal_symbol_count to zero,
2110 instead of comparing msymbols with NULL.
2111 * objfiles.c (have_minimal_symbols): Same.
2112 * solib-sunos.c (solib_add_common_symbols): Call
2113 terminate_minimal_symbol_table.
2114 * symfile.c (reread_symbols): Same.
2115
ffc65945
KB
21162003-02-03 Kevin Buettner <kevinb@redhat.com>
2117
2118 * s390-tdep.c (s390_address_class_type_flags)
2119 (s390_address_class_type_flags_to_name)
2120 (s390_address_class_name_to_type_flags): New functions.
2121 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2122 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2123
f211c6d4
MS
21242003-02-03 Michael Snyder <msnyder@redhat.com>
2125
2126 * arm-tdep.c: Fix spell-o in comment.
2127
659b0389
ML
21282003-02-03 Michal Ludvig <mludvig@suse.cz>
2129
2130 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2131 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2132 error messages to contain BFD filename.
2133
3b31d625
EZ
21342003-02-02 Elena Zannoni <ezannoni@redhat.com>
2135
997b089a 2136 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
2137 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2138 (do_mixed_source_and_assembly): Use
2139 make_cleanup_ui_out_tuple_begin_end and
2140 make_cleanup_ui_out_tuple_begin_end.
2141 (do_mixed_source_and_assembly): Ditto.
2142 * thread.c (do_captured_list_thread_ids): Ditto.
2143 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2144 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2145 ui_out_tuple_end): Delete prototypes.
2146 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2147 ui_out_list_end, ui_out_tuple_end): Delete.
2148
2149 From Kevin Buettner <kevinb@redhat.com>:
2150 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2151 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2152 (do_cleanup_table_end): New functions.
2153 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2154 Use cleanups to invoke_ui_out_tuple_end().
2155 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2156 * cli/cli-setshow.c (cmd_show_list): Use
2157 make_cleanup_ui_out_tuple_begin_end.
2158
5b181d62
AC
21592003-02-02 Andrew Cagney <ac131313@redhat.com>
2160
2161 * frame.c (frame_unwind_register): New function.
2162 (frame_unwind_unsigned_register): Use.
2163 (frame_unwind_signed_register): Use.
2164 (frame_read_register): New function.
2165 * frame.h (frame_unwind_register): Declare.
2166 (frame_read_register): Declare.
2167
2168 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2169 and frame_unwind_register instead of read_memory, write_register
2170 and deprecated_write_register_bytes.
2171
5f601589
AC
21722003-02-02 Andrew Cagney <ac131313@redhat.com>
2173
2174 * frame.h: Note that namelen can be negative.
2175 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2176 NAME's length.
2177
2178 * NEWS: Mention that the d10v's `regs' command is deprecated.
2179 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2180 (d10v_print_registers_info): New function.
2181 (show_regs): Call d10v_print_registers_info.
2182 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2183
6a3fe0a4
MK
21842003-02-02 Mark Kettenis <kettenis@gnu.org>
2185
2186 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2187 lost in the previous patch.
2188
075559bc
AC
21892003-02-01 Andrew Cagney <ac131313@redhat.com>
2190
2191 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2192 * stack.c (print_frame_info_base): Output complete FRAME tuple
2193 for synthesized frames.
2194
6789195b
AC
21952003-02-02 Andrew Cagney <ac131313@redhat.com>
2196
2197 * mips-nat.c (zerobuf): Delete.
2198 (fetch_inferior_registers): Alloc local zerobuf.
2199 (fetch_core_registers): Alloc local zerobuf.
2200 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2201 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2202 * thread-db.c (thread_db_store_registers): Ditto.
2203 * sh-tdep.c (sh_do_register): Ditto.
2204 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2205 * remote-sim.c (gdbsim_store_register): Ditto.
2206 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2207 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2208 * monitor.c (monitor_supply_register): Ditto.
2209 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2210 * mips-nat.c (fetch_inferior_registers): Ditto.
2211 * m68klinux-nat.c (fetch_register): Ditto.
2212 * lynx-nat.c (fetch_inferior_registers): Ditto.
2213 (fetch_inferior_registers): Ditto.
2214 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2215 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2216 (hpux_thread_store_registers): Ditto.
2217 * hppah-nat.c (fetch_register): Ditto.
2218 * hppab-nat.c (fetch_register): Ditto.
2219 * hppa-tdep.c (pa_register_look_aside): Ditto.
2220 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2221 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2222
e669114a
AC
22232003-02-01 Andrew Cagney <ac131313@redhat.com>
2224
2225 * gdbarch.sh: Explictly specify all method levels. When a
2226 variable with an empty level, provide a non-multi-arch default.
2227 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2228 * gdbarch.h: Re-generate.
2229 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2230 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2231
9a043c1d
AC
22322003-02-01 Andrew Cagney <ac131313@redhat.com>
2233
2234 * defs.h (host_pointer_to_address): Delete declaration.
2235 (address_to_host_pointer): Delete declaration.
2236 * utils.c (host_pointer_to_address): Delete function.
2237 (address_to_host_pointer): Delete function.
2238 * procfs.c (procfs_address_to_host_pointer): New function.
2239 * procfs.c (proc_set_watchpoint): Use.
2240 (procfs_can_use_hw_breakpoint): Update comments.
2241 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2242 (som_solib_add): Use.
2243 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2244 * hppa-tdep.c (unwind_command): Use.
2245
7ca9f392
AC
22462003-02-01 Andrew Cagney <ac131313@redhat.com>
2247
94bbfd30
AC
2248 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2249 strlen d_name.
2250
7ca9f392
AC
2251 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2252 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2253 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2254 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2255 (define_symbol): Update.
2256 * symfile.c (generic_load): Remove references to nindy.
2257 * symtab.c: Remove references to nindy.
2258
31a85ea2
AC
22592003-02-01 Andrew Cagney <ac131313@redhat.com>
2260
2261 * infcmd.c (print_float_info): Delete code conditional on
2262 FLOAT_INFO.
2263 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2264 * config/m68k/nm-apollo68b.h: Ditto.
2265 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2266 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2267 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2268
f6e85fc8
MK
22692003-02-01 Mark Kettenis <kettenis@gnu.org>
2270
6015b6a0
MK
2271 * config/i386/tm-i386os9k.h: Removed.
2272
f7a30bdf
MK
2273 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2274 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2275 they're identical to i[3456]86-*-sysv* now.
2276 * config/i386/i386v32.mh: Removed.
2277 * config/i386/xm-i386v32.h: Removed.
2278 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2279
28d52111
MK
2280 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2281
4d3f6bce
MK
2282 * config/i386/i386dgux.mh: Removed.
2283 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2284
f6e85fc8
MK
2285 * configure.in: Fix typo.
2286 * configure: Regenerated.
2287
53955967
DC
22882003-01-31 David Carlton <carlton@math.stanford.edu>
2289
2290 * dwarf2read.c (dwarf2_locate_sections): Set
2291 dwarf_ranges_section.
2292
b1364885
AC
22932003-01-31 Andrew Cagney <ac131313@redhat.com>
2294
8dbb1c65
AC
2295 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2296 * utils.c: Update comments documenting legitimate uses of PTR.
2297
8731e58e
AC
2298 * utils.c: Re-indent.
2299
b1364885
AC
2300 * config/djgpp/fnchange.lst: Delete nindy files.
2301 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2302 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2303 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2304 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2305 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2306 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2307 * Makefile.in (init.c): Remove nindy references.
2308 (saber_gdb): Delete rule.
2309 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2310 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2311 and a68v-nat.c.
2312 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2313 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2314 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2315 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2316 nindy-share/stop.h.
2317 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2318 * saber.suppress: Delete file.
2319
086df311
DJ
23202003-01-31 Daniel Jacobowitz <drow@mvista.com>
2321
2322 * dbxread.c (stabs_data): New static variable.
2323 (fill_symbuf): Support an in-memory buffer for stabs data.
2324 (stabs_seek): New function.
2325 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2326 (read_ofile_symtab): Use stabs_seek.
2327 (elfstab_build_psymtabs): Take an asection* instead of
2328 an offset and size. Relocate the stabs data if necessary.
2329 Save the section* for dbx_psymtab_to_symtab.
2330 * dwarf2read.c: Add section variables for each debug section.
2331 (dwarf2_locate_sections): Fill them in.
2332 (dwarf2_read_section): Take an asection* argument.
2333 Relocate the section contents if necessary.
2334 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2335 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2336 it to dwarf2_read_section.
2337 (dwarf2_build_frame_info): Update callers.
2338 * elfread.c (elf_symfile_read): Update call to
2339 elfstab_build_psymtabs.
2340 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2341 (DBX_STAB_SECTION): New macro.
2342 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2343 * symfile.c (symfile_dummy_outputs): New function.
2344 (symfile_relocate_debug_section): New function.
2345 * symfile.h (symfile_relocate_debug_section): Add prototype.
2346
87d1b352
RH
23472003-01-31 Richard Henderson <rth@redhat.com>
2348
2349 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2350 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2351 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2352 * alpha-tdep.c (alpha_register_name): Add "unique".
2353 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2354 (ALPHA_UNIQUE_REGNUM): New.
2355 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2356
c48861fb
AC
23572003-01-31 Andrew Cagney <ac131313@redhat.com>
2358
2359 * README: Remove reference to Ericsson 1800 monitor.
2360 * Makefile.in (remote-es.o): Delete rule.
2361 (ALLDEPFILES): Delete remote-es.c.
2362 * remote-es.c: Delete file.
2363 * config/m68k/es1800.mt: Delete file.
2364 * config/djgpp/fnchange.lst: Update.
2365 * configure.tgt: Delete m68*-ericsson-* target.
2366
d764a824
AF
23672003-01-31 Adam Fedor <fedor@gnu.org>
2368
2369 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2370 Remove duplicate/shadowing variable of same name.
2371
fe36c4f4
JB
23722003-01-30 Jim Blandy <jimb@redhat.com>
2373
2374 * symfile.c (find_separate_debug_file): Assert that the objfile's
2375 directory name we compute ends with a slash, and then assume that
2376 that's so everywhere we use it.
2377
cb741690
DJ
23782003-01-30 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * valops.c (value_assign): Flush frame cache after stores to memory
2381 also.
2382
96ee5227
AC
23832003-01-30 Andrew Cagney <ac131313@redhat.com>
2384
2385 * Makefile.in (mon960-rom.o): Delete rule.
2386 * mon960-rom.c: Delete file.
2387
7f6104a9
AC
23882003-01-30 Andrew Cagney <ac131313@redhat.com>
2389
2390 * d10v-tdep.c: Include "frame-unwind.h".
2391 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2392 list.
2393 (next_addr, uses_frame): Delete.
2394 (struct d10v_unwind_cache): Define.
2395 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2396 Use info instead of next_addr and uses_frame globals.
2397 (d10v_frame_init_saved_regs): Delete function.
2398 (d10v_init_extra_frame_info): Delete function.
2399 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2400 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2401 init_frame_pc or frame_saved_pc.
2402 (d10v_pop_frame): Delete function.
2403 (do_d10v_pop_frame): Delete function.
2404 (d10v_frame_chain): Delete function.
2405 (d10v_frame_chain_valid): Delete function.
2406 (d10v_frame_pc_unwind): New function.
2407 (d10v_frame_id_unwind): New function.
2408 (saved_regs_unwinder): New function.
2409 (d10v_frame_register_unwind): New function.
2410 (d10v_frame_pop): New function.
2411 (d10v_frame_unwind): New variable.
2412 (d10v_frame_p): New function.
2413 (d10v_frame_saved_pc): Delete function.
2414 * Makefile.in (d10v-tdep.o): Update dependencies.
2415
cad2e848
JB
24162003-01-30 J. Brobecker <brobecker@gnat.com>
2417
2418 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2419 causing some regressions due to a change in the default value
2420 for this macro.
2421
af34e669
DJ
24222003-01-29 Richard Henderson <rth@redhat.com>
2423 Elena Zannoni <ezannoni@redhat.com>
2424 Daniel Jacobowitz <drow@mvista.com>
2425
2426 Fix PR gdb/961.
2427 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2428 variables.
2429 (RANGES_SECTION): New.
2430 (dwarf_ranges_buffer): New variable.
2431 (struct comp_unit_head): Add member "die".
2432 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2433 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2434 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2435 (dwarf2_locate_sections): Likewise.
2436 (dwarf2_build_psymtabs): Read .debug_ranges.
2437 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2438 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2439 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2440 Look for DW_AT_ranges and return the bounding box.
2441
baa93fa6
CF
24422003-01-29 Brian Ford <ford@vss.fsi.com>
2443
2444 * win32-nat.c (cygwin_pid): Removed as unused.
2445 (child_attach): Try fall back to Cygwin pid.
2446
c63f977f
JB
24472003-01-29 Jim Blandy <jimb@redhat.com>
2448
2449 * objfiles.h (struct objfile): Doc fix.
2450
d62d1979
AC
24512003-01-29 Andrew Cagney <ac131313@redhat.com>
2452
2453 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2454 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2455 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2456 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2457 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2458 (FRAME_SAVED_PC): Change to a function with predicate.
2459 * gdbarch.h, gdbarch.c: Re-generate.
2460
1ae18a04
AC
24612003-01-28 Andrew Cagney <ac131313@redhat.com>
2462
52287340
AC
2463 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2464
1ae18a04
AC
2465 * complaints.c (complain): Delete function.
2466 * complaints.h (struct deprecated_complaint): Delete definition.
2467 (complain): Delete declaration.
2468
f2c16bd6
KB
24692003-01-28 Kevin Buettner <kevinb@redhat.com>
2470
2471 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2472 dummy frames.
2473
a94dd1fd
AC
24742003-01-27 Andrew Cagney <ac131313@redhat.com>
2475
2476 * sentinel-frame.h, sentinel-frame.c: New files.
2477 * Makefile.in (frame.o): Update dependencies.
2478 (SFILES): Add sentinel-frame.c.
2479 (sentinel_frame_h): Define.
2480 (COMMON_OBS): Add sentinel-frame.o.
2481 (sentinel-frame.o): Specify dependencies.
2482 * frame.c: Include "sentinel-frame.h".
2483 (frame_register_unwind): Rewrite assuming that there is always a a
2484 ->next frame.
2485 (frame_register, generic_unwind_get_saved_register): Ditto.
2486 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2487 (create_sentinel_frame, unwind_to_current_frame): New functions.
2488 (get_current_frame): Rewrite using create_sentinel_frame and
2489 unwind_to_current_frame. When possible, always create a frame.
2490 (create_new_frame): Set next to the sentinel frame.
2491 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2492 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2493 ID cache when necessary.
2494 (frame_saved_regs_id_unwind): Use frame_relative_level.
2495 (deprecated_generic_get_saved_register): Use frame_relative_level,
2496 get_frame_saved_regs, get_frame_pc, get_frame_base and
2497 get_next_frame.
2498 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2499 frame_register.
2500
5378adc4
DJ
25012003-01-27 Daniel Jacobowitz <drow@mvista.com>
2502
2503 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2504
51ee2ddc
DJ
25052003-01-27 Daniel Jacobowitz <drow@mvista.com>
2506
2507 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2508 (maintenance_set_profile_cmd): Use error () instead of warning ().
2509
d9feb4e7
DJ
25102003-01-27 Daniel Jacobowitz <drow@mvista.com>
2511
2512 * configure.in: Check that -pg works if using --enable-profiling.
2513 Check for monstartup and _mcleanup regardless of --enable-profiling.
2514 * maint.c: Check for monstartup and _mcleanup before using them.
2515 * config.in: Regenerated.
2516 * configure: Regenerated.
2517
2d188dd3
NC
25182003-01-24 Nick Clifton <nickc@redhat.com>
2519
2520 * Add sh2e support:
2521
2522 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2523
2524 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2525 (sh2e_show_regs): New.
2526 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2527 * config/sh/tm-sh.h: Added sh2e to comments.
2528
cb3c37b2
JB
25292003-01-23 Jim Blandy <jimb@redhat.com>
2530
2531 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2532 symbols found)" message here; we haven't checked for a separate
2533 debug info file yet, so we don't know yet.
2534 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2535 we've looked everywhere. Also, there's no need to print a special
2536 message when we're loading the separate debug info file: the one
2537 symbol_file_add prints is fine.
2538
5b5d99cf
JB
25392003-01-23 Alexander Larsson <alexl@redhat.com>
2540 Jim Blandy <jimb@redhat.com>
2541
2542 Add support for executables whose debug info has been separated
2543 out into a separate file, leaving only a link behind.
2544 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2545 and separate_debug_objfile_backlink.
2546 (put_objfile_before): New declaration.
2547 * symfile.c: #include "filenames.h".
2548 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2549 debug info in a separate file, read that, too. Save the addrs
2550 argument, so we can use it again to read the separated debug info;
2551 syms_from_objfile modifies the table we pass it.
2552 (reread_symbols): After re-reading an objfile, call
2553 reread_separate_symbols to refresh its separate debug info
2554 objfile, if it has one.
2555 (reread_separate_symbols, find_separate_debug_file,
2556 get_debug_link_info, separate_debug_file_exists): New functions.
2557 (debug_file_directory): New global var.
2558 (_initialize_symfile): Initialize debug_file_directory, and
2559 provide the new `set debug-file-directory' command to let the user
2560 change it.
2561 * objfiles.c (free_objfile): If this objfile has its debug info in
2562 a separate objfile, free that one too. If this is itself a
2563 separate debug info objfile, clear our parent's backlink.
2564 (put_objfile_before): New function.
2565 * utils.c (gnu_debuglink_crc32): New function.
2566 * defs.h (gnu_debuglink_crc32): New declaration.
2567 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2568 * configure.in: Handle --with-separate-debug-dir config option.
2569 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2570 * acconfig.h (DEBUGDIR): New macro.
2571 * configure, aclocal.m4, config.in: Regenerated.
2572
7e8580c1
JB
25732003-01-22 Jim Blandy <jimb@redhat.com>
2574
7904e09f
JB
2575 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2576 like the old symbol_file_add, but taking new arguments: you can
2577 now pass in either a `struct section_addr_info' list to say where
2578 each section is loaded, or a `struct section_offsets' table. Pass
2579 these new arguments through to syms_from_objfile as appropriate.
2580 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2581 with the appropriate quiescent values for the new arguments.
2582
7e8580c1
JB
2583 * symfile.c: #include "gdb_assert.h".
2584 (syms_from_objfile): Add the ability to pass in a section offset
2585 table directly, as an alternative to the section_addr_info table.
2586 Document arguments better.
2587 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2588 * symfile.h (syms_from_objfile): Update declaration.
2589 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2590 syms_from_objfile.
2591 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2592
d28f9cdf
DJ
25932003-01-22 Daniel Jacobowitz <drow@mvista.com>
2594
2595 Original patch by Tom Tromey <tromey@cygnus.com> and
2596 Jason Molenda <jmolenda@apple.com>.
2597 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2598 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2599 * NEWS: Mention profiling.
2600 * configure.in (--enable-gdbtk): Fix typo.
2601 (--enable-profiling): New. Set PROFILE_CFLAGS.
2602 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2603 Fill in function.
2604 (profiling_state): New variable.
2605 (mcleanup_wrapper): New function.
2606 (_initialize_maint): Remove NOTYET, fix call to
2607 add_setshow_boolean_cmd for "maint set profile".
2608 * configure: Regenerated.
2609
df21e465
MH
26102003-01-21 Martin M. Hunt <hunt@redhat.com>
2611
2612 * Makefile.in (install-gdbtk): Install PNG images too.
2613
73c1f219
AC
26142003-01-21 Andrew Cagney <ac131313@redhat.com>
2615
2616 * exec.c (text_start): Delete global variable.
2617 (exec_file_attach): Make text_start local to the function.
2618 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2619 * valops.c (hand_function_call): Delete code that handles
2620 BEFORE_TEXT_END and AFTER_TEXT_END.
2621 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2622 of CALL_DUMMY_LOCATION.
2623 * gdbarch.c: Regenerate.
2624 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2625 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2626 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2627 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2628 (text_end): Delete extern declaration.
2629
eb4f72c5
AC
26302003-01-21 Andrew Cagney <ac131313@redhat.com>
2631
2632 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2633 * blockframe.c (backtrace_below_main): Move to "frame.c".
2634 (frame_chain_valid): Delete check for backtrace_below_main.
2635 (_initialize_blockframe): Delete initialization, move ``set
2636 backtrace-below-main'' command to "frame.c".
2637 (do_flush_frames_sfunc): Delete function.
2638 * frame.c: Include "command.h" and "gdbcmd.h".
2639 (frame_type_from_pc): New function.
2640 (create_new_frame): Use frame_type_from_pc.
2641 (legacy_get_prev_frame): New function.
2642 (get_prev_frame): Rewrite. When an old style frame, call
2643 legacy_get_prev_frame. Otherwize, unwind the PC first.
2644 (_initialize_frame): Add ``set backtrace-below-main'' command.
2645 * Makefile.in (frame.o): Update dependencies.
2646
778ce8cc
AC
26472003-01-19 Andrew Cagney <ac131313@redhat.com>
2648
2649 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2650 DEPRECATED_REGISTERS_INFO.
2651
01c193c8
AC
26522003-01-19 Andrew Cagney <ac131313@redhat.com>
2653
2654 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2655 Maintainers'. Update `Various Maintainers'.
2656
dedc2a2b
AC
26572003-01-19 Andrew Cagney <ac131313@redhat.com>
2658
2659 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2660 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2661 Suppress actual parameters when `-'.
2662 * gdbarch.h, gdbarch.c: Regenerate.
2663
b7261c70
AC
26642003-01-19 Andrew Cagney <ac131313@redhat.com>
2665
2666 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2667 code handling dummy frames.
2668
dbe9fe58
AC
26692003-01-19 Andrew Cagney <ac131313@redhat.com>
2670
2671 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2672 (struct frame_unwind): Add field pop.
2673 * frame.h (frame_pop): Declare.
2674 * frame.c (frame_saved_regs_pop): New function.
2675 (trad_frame_unwinder): Add frame_saved_regs_pop.
2676 (frame_pop): New function.
2677 * dummy-frame.c (dummy_frame_pop): New function.
2678 (discard_innermost_dummy): New function.
2679 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2680 (dummy_frame_unwind): Add dummy_frame_pop.
2681 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2682 * valops.c (hand_function_call): Ditto.
2683 * stack.c (return_command): Ditto.
2684
570b8f7c
AC
26852003-01-18 Andrew Cagney <ac131313@redhat.com>
2686
2687 * cris-tdep.c: Fix function declaration indentation.
2688 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2689 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2690 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2691 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2692 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2693 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2694
26952003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
2696
2697 * README (Unpacking and Installation -- quick overview):
2698 Warn against ".../gdb-5.3/gdb/configure".
2699
494cca16
AC
27002003-01-18 Andrew Cagney <ac131313@redhat.com>
2701
2702 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2703 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2704 (struct frame_unwind): Declare opaque.
2705 (dummy_frame_p): Declare function.
2706 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2707 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2708 * dummy-frame.c: Include "frame-unwind.h".
2709 (dummy_frame_p): New function.
2710 (dummy_frame_unwind): New variable.
2711 * frame.c: Include "frame-unwind.h".
2712 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2713 to use the new unwind field.
2714 (set_unwind_by_pc): Delete function.
2715 (create_new_frame, get_prev_frame): Set unwind field using
2716 frame_unwind_find_by_pc.
2717 (trad_frame_unwind, trad_frame_unwinder): New variables.
2718 * frame.h (trad_frame_unwind): Declare variable.
2719 (frame_id_unwind_ftype): Delete declaration.
2720 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2721 (struct frame_unwind): Declare opaque.
2722 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2723 register_unwind with a single unwind pointer.
2724 * frame-unwind.h, frame-unwind.c: New files.
2725 * Makefile.in (SFILES): Add frame-unwind.c.
2726 (frame_unwind_h): Define.
2727 (COMMON_OBS): Add frame-unwind.o.
2728 (frame-unwind.o): Specify dependencies.
2729 (frame.o, dummy-frame.o): Update dependencies.
2730
4efb68b1
AC
27312003-01-18 Andrew Cagney <ac131313@redhat.com>
2732
2733 * ada-valprint.c: Eliminate PTR.
2734 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2735 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2736 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2737 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2738 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2739 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2740 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2741
a84d24ee
AC
27422003-01-17 Andrew Cagney <ac131313@redhat.com>
2743
762f08a3
AC
2744 * main.c (captured_main): Don't use PTR.
2745 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2746 * gdbtypes.c (lookup_primitive_typename): Ditto.
2747 (lookup_struct_elt_type): Ditto.
2748 * f-valprint.c (info_common_command): Ditto.
2749 (list_all_visible_commons): Ditto.
2750 * jv-typeprint.c (java_type_print_base): Ditto.
2751
a84d24ee
AC
2752 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2753 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2754 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2755 i386-interix-nat.c and i386-interix-tdep.c. Rename
2756 m68klinux-nat.c and m68klinux-tdep.c. Rename
2757 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2758 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2759 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2760 * main.c (captured_main): Use xfree, not free.
2761
c170fb60
AC
27622003-01-16 Andrew Cagney <ac131313@redhat.com>
2763
2764 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2765 ID back using a parameter.
2766 * frame.c (frame_id_unwind): Update call.
2767 (frame_saved_regs_id_unwind): Update.
2768 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2769 * dummy-frame.h (struct frame_id): Add opaque declaration.
2770 (dummy_frame_id_unwind): Update declaration.
2771
867f3898
AC
27722003-01-15 Andrew Cagney <ac131313@redhat.com>
2773
2774 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2775
40622be8 27762003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 2777
40622be8 2778 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 2779
ae66c1fc
EZ
27802003-01-14 Elena Zannoni <ezannoni@redhat.com>
2781
997b089a 2782 Fix PR gdb/898
ae66c1fc
EZ
2783 * breakpoint.c (until_break_command): Add new argument. Use it to
2784 decide whether to stop only at the current frame or not.
2785 * breakpoint.h (until_break_command): Update prototype.
2786 * infcmd.c (until_command): Add new argument to until_break_command
2787 call.
2788 (advance_command): New function.
2789 (_initialize_infcmd): Update help string for 'until' command.
2790 Add new 'advance' command.
2791
a04257e6
DC
27922003-01-14 David Carlton <carlton@math.stanford.edu>
2793
2794 * linespec.c (decode_line_1): Normalize comments.
2795 (set_flags): Ditto.
2796 (locate_first_half): Ditto.
2797 (decode_compound): Ditto.
2798 (symtab_from_filename): Ditto.
2799 (decode_all_digits): Ditto.
2800 (decode_dollar): Ditto.
2801 (find_methods): Ditto.
2802 (find_toplevel_char): Ditto.
2803
1bac305b
AC
28042003-01-13 Andrew Cagney <ac131313@redhat.com>
2805
2806 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2807 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2808 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2809 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2810 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2811 * language.c, language.h, m32r-tdep.c: Update copyright.
2812 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2813 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2814 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2815 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2816 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2817 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2818
25caa7a8
EZ
28192003-01-13 Elena Zannoni <ezannoni@redhat.com>
2820
2821 * stabsread.h (process_later, resolve_cfront_continuation):
2822 Obsolete.
2823 Update copyright years.
2824 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2825 Update copyright year.
2826 * dbxread.c(struct cont_elem): Obsolete.
2827 (process_later, process_now): Obsolete functions.
2828 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2829 Update copyright year.
2830 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2831 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2832 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2833 (parse_partial_symbols): Obsolete cfront support.
2834 * stabsread.c
2835 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2836 macros.
2837 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2838 read_cfront_baseclasses, read_cfront_member_functions,
2839 resolve_cfront_continuation,read_cfront_static_fields,
2840 copy_cfront_struct_fields): Obsolete functions.
2841 (define_symbol, read_one_struct_field): Obsolete cfront support.
2842 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2843 Update Copyright year.
2844
7789c6f5
EZ
28452003-01-13 Elena Zannoni <ezannoni@redhat.com>
2846
2847 * stack.c (print_frame_info, print_stack_frame_base_stub,
2848 print_stack_frame_base, show_and_print_stack_frame_stub,
2849 show_and_print_stack_frame, print_only_stack_frame_stub,
2850 print_only_stack_frame): Delete functions.
2851 (print_stack_frame_stub): Call print_frame_info instead of
2852 print_frame_info_base.
2853 (print_frame_info_base): Rename to print_frame_info.
2854 (backtrace_command_1): Call print_frame_info, instead of
2855 print_frame_info_base.
2856 (current_frame_command): Call print_stack_frame, instead of
2857 print_only_stack_frame.
2858 (frame_command): Call print_stack_frame, instead of
2859 show_and_print_stack_frame.
2860 (up_command): Ditto.
2861 (down_command): Ditto.
2862 * frame.h (print_only_stack_frame): Delete prototype.
2863 * infrun.c (normal_stop): Call print_stack_frame, instead of
2864 show_and_print_stack_frame.
2865 * thread.c (info_threads_command): Call print_stack_frame, instead
2866 of print_only_stack_frame.
2867
3f5a3016
AC
28682003-01-13 Andrew Cagney <ac131313@redhat.com>
2869
d99ba314
AC
2870 * README (Graphical interface to GDB): Update URL. Point at
2871 gdb/links/.
2872
3f5a3016
AC
2873 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2874 version match.
2875
083ae935
DJ
28762003-01-13 Daniel Jacobowitz <drow@mvista.com>
2877
2878 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2879 lines.
2880
5365276c
DJ
28812003-01-13 Daniel Jacobowitz <drow@mvista.com>
2882
2883 * thread-db.c (attach_thread): Prototype.
2884 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2885 thread information (ti), and valid flags (th_valid, ti_valid).
2886 (attach_thread): Move target_pid_to_str call to after the thread
2887 is added to GDB's list. Initialize the cache.
2888 (thread_get_info_callback, thread_db_map_id2thr)
2889 (thread_db_get_info): New functions.
2890 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2891 (thread_db_store_registers, thread_db_thread_alive)
2892 (thread_db_get_thread_local_address): Use them.
2893 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2894 of calling error() for threads in unknown state.
2895
2896 (clear_lwpid_callback): New function.
2897 (thread_db_resume): Use it to clear the cache.
2898
9fc30b6b
DJ
28992003-01-13 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2902 (resume_callback): Remove dead code.
2903
8f871025
AC
29042003-01-13 Andrew Cagney <ac131313@redhat.com>
2905
2906 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2907 predicate.
2908 * gdbarch.h, gdbarch.c: Regenerate.
2909 * stack.c (frame_info): Only initialize the saved registers when
2910 FRAME_INIT_SAVED_REGS_P.
2911 * frame.c (frame_saved_regs_register_unwind): Assert
2912 FRAME_INIT_SAVED_REGS_P.
2913 (deprecated_generic_get_saved_register): Ditto.
2914
3f565f1e
DJ
29152003-01-13 Daniel Jacobowitz <drow@mvista.com>
2916
2917 * source.c (openp): Squelch warning about "filename".
2918
072b1022
DJ
29192003-01-13 Daniel Jacobowitz <drow@mvista.com>
2920
2921 * source.c (openp): If the file does not exist don't necessarily
2922 search the path.
2923
973ccf8b
DJ
29242003-01-13 Daniel Jacobowitz <drow@mvista.com>
2925
2926 Fix PR gdb/872.
2927 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2928 (integer_types_same_name_p): New function.
2929 (rank_one_type): Use it.
2930 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2931
030292b7
DJ
29322003-01-13 Daniel Jacobowitz <drow@mvista.com>
2933
2934 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2935 variables.
2936 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2937 * configure.in: Add --with-sysroot.
2938 * configure: Regenerated.
2939 * main.c (gdb_sysroot): New variable.
2940 (captured_main): Initialize gdb_sysroot.
2941 * defs.h (gdb_sysroot): New extern declaration.
2942 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2943
afb5d334
MC
29442003-01-12 Michael Chastain <mec@shout.net>
2945
2946 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2947
751ceeb4
MC
29482003-01-12 Michael Chastain <mec@shout.net>
2949
2950 * top.c (print_gdb_version): Bump copyright year to 2003.
2951
94cd26f8
DC
29522003-01-12 David Carlton <carlton@bactrian.org>
2953
2954 * linespec.c (symtab_from_filename): Rename variable 's' to
2955 'file_symtab'.
2956
1ce79225
AC
29572003-01-12 Andrew Cagney <ac131313@redhat.com>
2958
2959 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2960 dummy frame.
2961 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2962
fa1fd571
AC
29632003-01-12 Andrew Cagney <ac131313@redhat.com>
2964
2965 * d10v-tdep.c: Include "gdb_assert.h".
2966 (d10v_store_return_value): Rewrite to match current interface.
2967 (d10v_extract_struct_value_address): Ditto.
2968 (d10v_extract_return_value): Ditto.
2969 (d10v_gdbarch_init): Set store_restore_value,
2970 extract_struct_value_address and extract_return_value.
2971
68b8d23e
JB
29722003-01-12 J. Brobecker <brobecker@gnat.com>
2973
2974 * hpread.c (set_namestring): New procedure replacing the
2975 SET_NAMESTRING macro.
2976 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2977 by calls to set_namestring.
2978
29792003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
2980
2981 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2982 a compilation warning.
2983 (hpread_process_one_debug_symbol): Likewise.
2984
88d262ca
DC
29852003-01-10 David Carlton <carlton@math.stanford.edu>
2986
2987 * linespec.c (decode_line_1): Rename variable 's' to
2988 'file_symtab'.
2989 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2990 (decode_dollar): Ditto.
2991 (decode_variable): Ditto.
2992 (symbol_found): Ditto.
2993
86669319
MC
29942003-01-09 Michael Chastain <mec@shout.net>
2995
2996 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2997
616a9dc4
CV
29982003-01-07 Corinna Vinschen <vinschen@redhat.com>
2999
3000 * win32-nat.c (set_process_privilege): New function.
3001 (child_attach): Call set_process_privilege() to enable the
3002 SE_DEBUG_NAME user privilege if available in process token.
3003
3269bcfa
JB
30042003-01-10 J. Brobecker <brobecker@gnat.com>
3005
3006 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3007 compilation error in the previous revision.
3008
2b0ee454
DC
30092003-01-09 David Carlton <carlton@math.stanford.edu>
3010
3011 * linespec.c: Update copyright.
3012
b3ba1b44
DJ
30132003-01-09 Daniel Jacobowitz <drow@mvista.com>
3014
3015 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3016 than inferior_ptid.
3017 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3018
4ef3f3be
AC
30192003-01-09 Andrew Cagney <ac131313@redhat.com>
3020
479ab5a0
AC
3021 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3022 Update comments.
3023 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3024 (frame_saved_regs_zalloc): Update.
3025 (frame_saved_regs_register_unwind): Update.
3026 (create_new_frame): Update.
3027 (get_prev_frame): Update.
3028 (frame_extra_info_zalloc): Update.
3029 (deprecated_get_frame_saved_regs): Update.
3030 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3031 * cris-tdep.c: Update comment.
3032
bde58177
AC
3033 * somsolib.h: Fix function indentation.
3034 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3035 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3036 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3037 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3038 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3039
4ef3f3be
AC
3040 * infrun.c (follow_fork): Use ISO C definition.
3041 * expprint.c (print_subexp): Use xfree instead of free.
3042 * charset.c: Include "gdb_string.h" instead of <string.h>.
3043 (register_iconv_charsets): Use ISO C definition.
3044 (host_charset, target_charset): Ditto.
3045 * Makefile.in (charset.o): Update dependencies.
3046 (mi-cmd-env.o): Update dependencies.
3047
1c615f7a
AC
30482003-01-08 Andrew Cagney <cagney@redhat.com>
3049
3050 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3051 get_frame_base.
3052
c9a1dc08
AC
30532003-01-08 Andrew Cagney <ac131313@redhat.com>
3054
3055 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3056 build directories. Save edited gdb output in Mbuild.log. If a
3057 build fails, remove any final GDB executable.
3058
dbad9d94
AC
30592003-01-08 Andrew Cagney <ac131313@redhat.com>
3060
3061 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3062 replacing hex constants with function names and stripping leading
3063 file name directory prefixes.
3064
8d357cca
AC
30652003-01-08 Andrew Cagney <cagney@redhat.com>
3066
3067 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3068 get_frame_base.
3069
bca02a8a
DC
30702003-01-08 David Carlton <carlton@math.stanford.edu>
3071
3072 * linespec.c (decode_line_1): Move code into decode_variable.
3073 (decode_variable): New function.
3074
7f8ab3a0
AC
30752003-01-08 Andrew Cagney <ac131313@redhat.com>
3076
3077 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3078
7b5849cc
AC
30792003-01-08 Andrew Cagney <cagney@redhat.com>
3080
3081 * cris-tdep.c (cris_frame_init_saved_regs): Use
3082 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3083 saved_regs buffer.
3084 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3085 (sh64_nofp_frame_init_saved_regs): Ditto.
3086 (sh_fp_frame_init_saved_regs): Ditto.
3087 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3088 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3089 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3090 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3091
72a5efb3
DJ
30922003-01-08 Daniel Jacobowitz <drow@mvista.com>
3093
3094 * minsyms.c (lookup_minimal_symbol): Update comment.
3095 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3096 (lookup_minimal_symbol_solib_trampoline): Likewise.
3097
11c02a10
AC
30982003-01-08 Andrew Cagney <cagney@redhat.com>
3099
aab3ea25
AC
3100 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3101 frame_relative_level.
3102
da50a4b7
AC
3103 * alpha-tdep.c: Use get_frame_extra_info.
3104 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3105 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3106 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3107 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3108
11c02a10
AC
3109 * alpha-tdep.c: Use get_next_frame.
3110 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3111 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3112 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3113 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3114 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3115 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3116 * xstormy16-tdep.c: Ditto.
3117
1e2330ba
AC
31182003-01-07 Andrew Cagney <cagney@redhat.com>
3119
3120 * alpha-tdep.c: Use get_frame_base.
3121 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3122 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3123 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3124 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3125 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3126 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3127 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3128 * config/sparc/tm-sparc.h: Ditto.
3129
2d75187b
AC
31302003-01-07 Andrew Cagney <cagney@redhat.com>
3131
3132 * frame.c (deprecated_get_frame_context): New function.
3133 (deprecated_set_frame_context): New function.
3134 * frame.h (deprecated_get_frame_context): Declare.
3135 (deprecated_set_frame_context): Declare.
3136 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3137 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3138
483d36b2
AC
31392003-01-07 Andrew Cagney <cagney@redhat.com>
3140
3141 * frame.c (deprecated_set_frame_next_hack): New function.
3142 (deprecated_set_frame_prev_hack): New function.
3143 * frame.h (deprecated_set_frame_next_hack): Declare.
3144 (deprecated_set_frame_prev_hack): Declare.
3145 * mcore-tdep.c (analyze_dummy_frame): Use
3146 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3147 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3148
14e91ac5
DC
31492003-01-07 David Carlton <carlton@math.stanford.edu>
3150
3151 * linespec.c (decode_line_1): Move code into decode_dollar.
3152 (decode_dollar): New function.
3153
b0c6b05c
AC
31542003-01-07 Andrew Cagney <cagney@redhat.com>
3155
3156 * arm-tdep.c (arm_init_extra_frame_info): Use
3157 deprecated_update_frame_base_hack.
3158 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3159 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3160 (fix_frame_pointer): Ditto.
3161 (mn10300_analyze_prologue): Ditto.
3162
a00a19e9
AC
31632003-01-07 Andrew Cagney <cagney@redhat.com>
3164
3165 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3166 extra_info using frame_extra_info_zalloc.
3167 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3168 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3169 (sh64_init_extra_frame_info): Ditto.
3170 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3171 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3172 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3173 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3174 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3175 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3176 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3177 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3178 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3179 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3180 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3181 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3182
3183 * mn10300-tdep.c (analyze_dummy_frame): Use
3184 deprecated_set_frame_extra_info_hack.
3185 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3186
1fb4c65b
JB
31872003-01-07 J. Brobecker <brobecker@gnat.com>
3188
3189 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3190 class is not scText. These do not define "real" procedures.
3191 (parse_partial_symbols): Likewise.
3192
9fe7d6bf
MS
31932003-01-06 Michael Snyder <msnyder@redhat.com>
3194
3195 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3196
f6c609c4
AC
31972003-01-06 Andrew Cagney <ac131313@redhat.com>
3198
3199 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3200 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3201 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3202 deprecated_frame_xmalloc_with_cleanup.
3203 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3204 deprecated_frame_xmalloc.
3205 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3206 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3207
d995ff4b
AC
32082003-01-06 Andrew Cagney <cagney@redhat.com>
3209
84dc46cb
AC
3210 * x86-64-linux-tdep.c: Include "osabi.h".
3211 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3212
d995ff4b
AC
3213 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3214
66140c26
AC
32152003-01-06 Andrew Cagney <cagney@redhat.com>
3216
3217 * MAINTAINERS (Target Instruction Set Architectures): Update
3218 arm-elf. Can be built with -Werror, has been multiarched.
3219
3220 * value.h (unpack_long): Make buffer parameter constant.
3221 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3222 * scm-lang.h (scm_parse): Ditto.
3223 * defs.h (extract_typed_address, extract_address): Ditto.
3224 (extract_long_unsigned_integer): Ditto.
3225 * inferior.h (unsigned_pointer_to_address): Ditto.
3226 (signed_pointer_to_address): Ditto.
3227 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3228 * gdbarch.h, gdbarch.c: Regenerate.
3229 * findvar.c (extract_long_unsigned_integer): Update.
3230 (extract_address): Update.
3231 (extract_typed_address): Update.
3232 (unsigned_pointer_to_address): Update.
3233 * values.c (unpack_long): Update.
3234 (unpack_double): Update.
3235 (unpack_pointer): Update.
3236 (unpack_field_as_long): Update.
3237 * d10v-tdep.c (d10v_pointer_to_address): Update.
3238 * avr-tdep.c (avr_pointer_to_address): Update.
3239 * scm-lang.c (scm_unpack): Update.
3240 * findvar.c (signed_pointer_to_address): Update.
3241
b089b3da
ML
32422003-01-06 Michal Ludvig <mludvig@suse.cz>
3243
3244 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3245 since it is in i386-tdep.c.
3246
aff87235
JB
32472003-01-06 J. Brobecker <brobecker@gnat.com>
3248
3249 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3250 failure introduced in the previous change.
3251
34f5e845
MC
32522003-01-05 Michael Chastain <mec@shout.net>
3253
3254 * README: Remove references to deleted remote-*.c files:
3255 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3256 remote-nrom.c, remote-os9k.c, remote-udi.c.
3257
28bcfd30
MK
32582003-01-05 Mark Kettenis <kettenis@gnu.org>
3259
3260 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3261 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3262 i386_get_longjmp_target.
3263
15a5b3ee
AC
32642003-01-05 Andrew Cagney <ac131313@redhat.com>
3265
3266 * arm-tdep.c (prologue_cache): Change to a pointer.
3267 (_initialize_arm_tdep): Allocate prologue_cache.
3268 (check_prologue_cache): Update.
3269 (save_prologue_cache): Update.
3270 (arm_gdbarch_init): Update.
3271
c263362b
DJ
32722003-01-04 Daniel Jacobowitz <drow@mvista.com>
3273
3274 * stabsread.c (update_method_name_from_physname): Call complaint()
3275 instead of error.
3276
51603483
DJ
32772003-01-04 Daniel Jacobowitz <drow@mvista.com>
3278
3279 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3280 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3281 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3282
3283 * blockframe.c: Include "gdbcmd.h" and "command.h".
3284 (backtrace_below_main): New variable.
3285 (file_frame_chain_valid, func_frame_chain_valid)
3286 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3287 (generic_func_frame_chain_valid): Remove functions.
3288 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3289 (_initialize_blockframe): New function.
3290 * Makefile.in (blockframe.o): Update dependencies.
3291 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3292 comment. Call frame_chain_valid ().
3293 * frame.h: Remove old prototypes. Add prototype for
3294 frame_chain_valid and update comments to match.
3295 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3296 Remove old comment.
3297 * gdbarch.h: Regenerated.
3298 * gdbarch.c: Regenerated.
3299
3300 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3301 set_gdbarch_frame_chain_valid.
3302 * avr-tdep.c (avr_gdbarch_init): Likewise.
3303 * cris-tdep.c (cris_gdbarch_init): Likewise.
3304 * frv-tdep.c (frv_gdbarch_init): Likewise.
3305 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3306 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3307 (i386_nw_init_abi): Likewise.
3308 (i386_gdbarch_init): Likewise.
3309 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3311 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3312 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3313 * mips-tdep.c (mips_gdbarch_init): Likewise.
3314 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3315 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3316 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3317 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3318 * s390-tdep.c (s390_gdbarch_init): Likewise.
3319 * sh-tdep.c (sh_gdbarch_init): Likewise.
3320 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3321 * v850-tdep.c (v850_gdbarch_init): Likewise.
3322 * vax-tdep.c (vax_gdbarch_init): Likewise.
3323 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3324
3325 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3326 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3327 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3328 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3329 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3330 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3331 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3332 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3333
b00a8037
DJ
33342002-01-04 Daniel Jacobowitz <drow@mvista.com>
3335
3336 * Makefile.in (acconfig_h): Remove incorrect macro.
3337 (config_h): Define.
3338 (osabi.o): Update dependencies.
3339 * configure.tgt: Set gdb_osabi based on target triplet.
3340 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3341 * configure: Regenerated.
3342 * config.in: Regenerated.
3343 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3344 (GDB_OSABI_DEFAULT): Define if not already defined.
3345 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3346 (set_osabi_string): New variables.
3347 (gdbarch_register_osabi): Add new OS ABI to
3348 gdb_osabi_available_names.
3349 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3350 (set_osabi, show_osabi): New functions.
3351 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3352
4be87837
DJ
33532003-01-04 Daniel Jacobowitz <drow@mvista.com>
3354
3355 * arch-utils.c (gdbarch_info_init): Set osabi to
3356 GDB_OSABI_UNINITIALIZED.
3357 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3358 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3359 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3360 * gdbarch.c: Regenerated.
3361 * gdbarch.h: Regenerated.
3362 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3363 there's no BFD.
3364 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3365 * osabi.h (enum gdb_osabi): Move to defs.h.
3366 (gdbarch_init_osabi): Update prototype.
3367 * defs.h (enum gdb_osabi): Moved here.
3368 * Makefile.in: Update dependencies.
3369
3370 * alpha-tdep.h: Don't include "osabi.h".
3371 (struct gdbarch_tdep): Remove osabi member.
3372 * alpha-tdep.c: Include "osabi.h".
3373 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3374 iterate over arches. Update call to gdbarch_init_osabi.
3375 (alpha_dump_tdep): Don't dump osabi.
3376 * alpha-linux-tdep.c: Include "osabi.h".
3377 * alpha-osf1-tdep.c: Include "osabi.h".
3378 * alphafbsd-tdep.c: Include "osabi.h".
3379 * alphanbsd-tdep.c: Include "osabi.h".
3380
3381 * arm-tdep.h: Don't include "osabi.h".
3382 (struct gdbarch_tdep): Remove osabi member.
3383 * arm-tdep.c: Include "osabi.h".
3384 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3385 iterate over arches. Update call to gdbarch_init_osabi.
3386 (arm_dump_tdep): Don't dump osabi.
3387 * arm-linux-tdep.c: Include "osabi.h".
3388 * armnbsd-tdep.c: Include "osabi.h".
3389
3390 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3391 Update call to gdbarch_init_osabi.
3392
3393 * i386-tdep.h: Don't include "osabi.h".
3394 (struct gdbarch_tdep): Remove osabi member.
3395 * i386-tdep.c: Include "osabi.h".
3396 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3397 iterate over arches. Update call to gdbarch_init_osabi.
3398 (i386_dump_tdep): Don't dump osabi.
3399 * i386-linux-tdep.c: Include "osabi.h".
3400 * i386-sol2-tdep.c: Include "osabi.h".
3401 * i386bsd-tdep.c: Include "osabi.h".
3402 * i386gnu-tdep.c: Include "osabi.h".
3403 * i386ly-tdep.c: Include "osabi.h".
3404 * i386nbsd-tdep.c: Include "osabi.h".
3405 * i386obsd-tdep.c: Include "osabi.h".
3406
3407 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3408 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3409 check osabi when iterating over arches. Update call to
3410 gdbarch_init_osabi.
3411 (mips_dump_tdep): Don't dump osabi.
3412
3413 * ns32k-tdep.h: Don't include "osabi.h".
3414 (struct gdbarch_tdep): Remove.
3415 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3416 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3417 allocate tdep. Update call to gdbarch_init_osabi.
3418 (ns32k_dump_tdep): Remove.
3419 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3420 * ns32knbsd-tdep.c: Include "osabi.h".
3421
3422 * ppc-tdep.h: Don't include "osabi.h".
3423 (struct gdbarch_tdep): Remove osabi member.
3424 * rs6000-tdep.c: Include "osabi.h".
3425 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3426 osabi when iterating over arches. Update call to
3427 gdbarch_init_osabi.
3428 (rs6000_dump_tdep): Don't dump osabi.
3429 * ppc-linux-tdep.c: Include "osabi.h".
3430 * ppcnbsd-tdep.c: Include "osabi.h".
3431
3432 * sh-tdep.h: Don't include "osabi.h".
3433 (struct gdbarch_tdep): Remove osabi member.
3434 * sh-tdep.c: Include "osabi.h".
3435 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3436 iterate over arches. Update call to gdbarch_init_osabi.
3437 (sh_dump_tdep): Don't dump osabi.
3438 * shnbsd-tdep.c: Include "osabi.h".
3439
3440 * sparc-tdep.c: Include "osabi.h".
3441 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3442 iterate over arches. Update call to gdbarch_init_osabi.
3443 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3444 tdep structure.
3445
3446 * vax-tdep.h: Don't include "osabi.h".
3447 (struct gdbarch_tdep): Remove.
3448 * vax-tdep.c: Include "osabi.h".
3449 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3450 iterate over arches. Don't allocate tdep. Update call
3451 to gdbarch_init_osabi.
3452 (vax_dump_tdep): Remove.
3453 (_initialize_vax_tdep): Update call to gdbarch_register.
3454
a881cf8e
DJ
34552003-01-04 Daniel Jacobowitz <drow@mvista.com>
3456
3457 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3458 entirely.
3459 (breakpoint_re_set_one): Don't fetch the value for a disabled
3460 watchpoint.
3461
1e698235
DJ
34622003-01-04 Daniel Jacobowitz <drow@mvista.com>
3463
3464 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3465 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3466 (COERCE_FLOAT_TO_DOUBLE): Remove.
3467 * gdbarch.c: Regenerate.
3468 * gdbarch.h: Regenerate.
3469 * Makefile.in: Remove value_h from gdbarch_h.
3470 * valops.c (coerce_float_to_double): New variable.
3471 (default_coerce_float_to_double): Remove.
3472 (standard_coerce_float_to_double): Remove.
3473 (value_arg_coerce): Use coerce_float_to_double.
3474 (_initialize_valops): Add "set coerce-float-to-double".
3475 * value.h (default_coerce_float_to_double): Remove prototype.
3476 (standard_coerce_float_to_double): Remove prototype.
3477
3478 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3479 prototyped.
3480 * mdebugread.c (parse_symbol): Likewise.
3481 * stabsread.c (define_symbol): Mark all functions as prototyped.
3482
3483 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3484 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3485 set_gdbarch_coerce_float_to_double.
3486 * arm-tdep.c (arm_gdbarch_init): Likewise.
3487 * frv-tdep.c (frv_gdbarch_init): Likewise.
3488 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3489 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3490 * mips-tdep.c (mips_gdbarch_init): Likewise.
3491 (mips_coerce_float_to_double): Remove.
3492 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3493 (rs6000_coerce_float_to_double): Remove.
3494 * s390-tdep.c (s390_gdbarch_init): Likewise.
3495 * sh-tdep.c (sh_gdbarch_init): Likewise.
3496 (sh_coerce_float_to_double): Remove.
3497 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3498 (sparc_coerce_float_to_double): Remove.
3499 * v850-tdep.c (v850_gdbarch_init): Likewise.
3500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3501 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3502 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3503 (hppa_coerce_float_to_double): Remove prototype.
3504 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3505
f436a26a
DJ
35062003-01-04 Daniel Jacobowitz <drow@mvista.com>
3507
3508 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3509
248f8055
DJ
35102003-01-04 Daniel Jacobowitz <drow@mvista.com>
3511
3512 Suggested by Stewart Brown <sb24@avaya.com>:
3513 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3514 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3515 (c_type_print_varspec_suffix): Likewise.
3516
72cfdc76
MK
35172003-01-04 Mark Kettenis <kettenis@gnu.org>
3518
bfd260bb
MK
3519 * configure.in: Don't set and AC_SUBST SUBDIRS.
3520 * configure: Regenerated.
3521
72cfdc76
MK
3522 * configure.in: Remove code dealing with shared libraries.
3523 * Makefile.in: Remove HLDFLAGS and HLDENV.
3524 * configure: Regenerated.
3525
c8b8a898
AC
35262003-01-04 Andrew Cagney <ac131313@redhat.com>
3527
3528 * frame.c (deprecated_frame_xmalloc): New function.
3529 (deprecated_set_frame_saved_regs_hack): New function.
3530 (deprecated_set_frame_extra_info_hack): New function.
3531 * frame.h (deprecated_frame_xmalloc): Declare.
3532 (deprecated_set_frame_saved_regs_hack): Declare.
3533 (deprecated_set_frame_extra_info_hack): Declare.
3534
14abd0fb
MK
35352003-01-04 Mark Kettenis <kettenis@gnu.org>
3536
8ee53726
MK
3537 * configure.in: Move code that provides the --enable-gdbtk option
3538 right after the code that handles the --enable-tui option, and
3539 polish it somewhat.
3540 * configure: Regenerated.
3541
14abd0fb
MK
3542 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3543 AC_CHECK_FUNCS and remove the old check for pread64.
3544 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3545 * acconfig.h (_GNU_SOURCE): Add.
3546 (HAVE_PREAD64): Remove.
3547 * configure, aclocal.m4, config.in: Regenerated.
3548
b2fb4676
AC
35492003-01-03 Andrew Cagney <ac131313@redhat.com>
3550
3551 * alpha-tdep.c: Use get_frame_saved_regs.
3552 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3553 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3554 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3555 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3556 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3557
8dcde887
MK
35582003-01-03 Mark Kettenis <kettenis@gnu.org>
3559
3560 * configure.in: Remove all use of the SUBDIRS variable; add
3561 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3562 code providing the --enable-multi-ice option, and move it right in
3563 front of the code that checks whether gdbserver is supported.
3564 Polish that too.
3565 * configure: Regenerated.
3566 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3567 @SUBDIRS@.
3568
8ccd593b
AC
35692003-01-03 Andrew Cagney <cagney@redhat.com>
3570
3571 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3572 * avr-tdep.c, cris-tdep.c: Ditto.
3573 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3574 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3575
91151a06
MK
35762003-01-03 Mark Kettenis <kettenis@gnu.org>
3577
3578 * configure.in: Remove --enable-netrom option.
3579 * configure: Regenerated.
3580
8fe84d01
MK
35812003-01-03 Mark Kettenis <kettenis@gnu.org>
3582
3583 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3584 declaration for `struct re_pattern_buffer' instead.
3585 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3586
f0394be6
JB
35872003-01-03 J. Brobecker <brobecker@gnat.com>
3588
3589 * mdebugread.c (parse_symbol): Count until the stEnd matching
3590 the structure name.
3591
27e9bf90
MK
35922003-01-02 Mark Kettenis <kettenis@gnu.org>
3593
93d331ba
MK
3594 * configure.in: Remove --with-cpu option.
3595 subscripts. Remove evil changequotes here.
3596 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3597 * config.in, configure: Regenerated.
3598
27e9bf90
MK
3599 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3600 * configure.in: Cleanup section that sources GDB and BFD configure
3601 subscripts. Remove evil changequotes here.
3602 * config.in, configure: Regenerated.
3603
50abf9e5
AC
36042003-01-02 Andrew Cagney <ac131313@redhat.com>
3605
3606 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3607 frame accessor methods.
3608 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3609 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3610 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3611 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3612 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3613 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3614 * z8k-tdep.c: Ditto.
3615
287c1a40
MK
36162003-01-02 Mark Kettenis <kettenis@gnu.org>
3617
f5dbc56d
MK
3618 * configure.in: Remove UI_OUT configuration code.
3619 * ada-lang.c: Update assuming UI_OUT is always true.
3620 * Makefile.in (UIOUT_CFLAGS): Remove.
3621 * configure: Regenerated.
3622 * TODO: Remove blurb about elimination of -DUI_OUT.
3623
627af7ea
MK
3624 * configure.in: Move code that provides the --enable-gdbcli,
3625 --enable-gdbmi options right before the code that handles the
3626 --enable-tui option. Polish a bit.
3627 * configure: Regenerated.
3628
06825bd1
MK
3629 * configure.in: Rewrite check for GNU regex and the
3630 --without-included regex option, and move it into the "Checks for
3631 library functions" section. This makes us use the system regex
3632 again by default on systems with version 2 of the GNU C library.
3633 This was apparently broken.
3634 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3635 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3636 * config.in, configure: Regenerated.
3637
287c1a40
MK
3638 * configure.in: Move code that provides the --enable-tui option
3639 before the "Checks for libraries" section. Polish the code
3640 somewhat and set need_curses to yes if we build the TUI. Rewrite
3641 code that looks for a library providing termcap functionality to
3642 match more closely what's done in the Readline library, and move
3643 it into to the "Checks for libraries" section.
3644 * configure: Regenerated.
3645 * Makefile.in (TERMCAP): Remove variable.
3646 * config/i386/go32.mh (TERMCAP): Remove variable.
3647
684e56bf
AC
36482003-01-02 Andrew Cagney <ac131313@redhat.com>
3649
3650 * MAINTAINERS: Mention gdb_mbuild.sh.
3651 * gdb_mbuild.sh: Rewrite.
3652
e1ea1d75
MK
36532003-01-02 Mark Kettenis <kettenis@gnu.org>
3654
3655 * configure.in: Fix typo in last change.
3656 * config.in, configure: Regenerated.
3657
1b831c93
AC
36582003-01-02 Andrew Cagney <ac131313@redhat.com>
3659
3660 * valarith.c (value_binop): Delete obsolete code and comments.
3661 * configure.host: Ditto.
3662 * buildsym.h (make_blockvector): Ditto.
3663 * buildsym.c (make_blockvector): Ditto.
3664 * defs.h (enum language): Ditto.
3665 (chill_demangle): Ditto.
3666 * elfread.c (elf_symtab_read): Ditto.
3667 * dwarfread.c (CHILL_PRODUCER): Ditto.
3668 (set_cu_language): Ditto.
3669 (handle_producer): Ditto.
3670 * expprint.c (print_subexp): Ditto.
3671 * gdbtypes.c (chill_varying_type): Ditto.
3672 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3673 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3674 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3675 (chill_varying_type): Ditto.
3676 * language.h (_LANG_chill): Ditto.
3677 * language.c (binop_result_type, integral_type): Ditto.
3678 (character_type, string_type, structured_type): Ditto.
3679 (lang_bool_type, binop_type_check): Ditto.
3680 * stabsread.h (os9k_stabs): Ditto.
3681 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3682 (define_symbol, read_type, read_struct_fields): Ditto.
3683 (read_array_type, read_enum_type, read_huge_number): Ditto.
3684 (read_range_type, start_stabs): Ditto.
3685 * symfile.c (init_filename_language_table): Ditto.
3686 (add_psymbol_with_dem_name_to_list): Ditto.
3687 * symtab.c (symbol_init_language_specific): Ditto.
3688 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3689 * symtab.h (struct general_symbol_info): Ditto.
3690 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3691 * typeprint.c (typedef_print): Ditto.
3692 * utils.c (fprintf_symbol_filtered): Ditto.
3693 * valops.c (value_cast, search_struct_field, value_slice): Delete
3694 obsolete code.
3695 (varying_to_slice): Delete function.
3696 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3697 (varying_to_slice): Delete declaration.
3698 * MAINTAINERS: Update.
3699
8bb2c122
MK
37002003-01-02 Mark Kettenis <kettenis@gnu.org>
3701
97bf5e38
MK
3702 * configure.in: Reorganize "Checks for library functions section"
3703 a bit. Remove check for `btowc' and `isascii' functions.
3704 * configure: Regenerated.
3705
5ee754fc
MK
3706 * acconfig.h (_MSE_INT_H): Remove.
3707 * configure.in: Create "Checks for header files" section, and move
3708 appropriate tests there. Don't check for objlist.h, wchar.h,
3709 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3710 misdetection fix. Also add "Checks for types", "Checks for
3711 compiler characteristics" and "Checks for library functions"
3712 sections.
3713 * config.in, configure: Regenerated.
3714
8bb2c122
MK
3715 * configure.in: Create "Checks for programs" section, and move
3716 appropriate tests there.
3717
9a156167
MK
37182003-01-01 Mark Kettenis <kettenis@gnu.org>
3719
3720 * configure.in: Create "Checks for libraries" section, and move
3721 appropriate tests there. Cleanup check for wctype in libw. Use
3722 AC_SEARCH_LIBS to see whether we need libsocket.
3723 * configure: Regenerated.
3724
a80e2bcb 3725For older changes see ChangeLog-2002
c906108c
SS
3726\f
3727Local Variables:
3728mode: change-log
3729left-margin: 8
3730fill-column: 74
3731version-control: never
3732End:
This page took 0.532339 seconds and 4 git commands to generate.