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