fa4f836ad2fe4bf3628f2e1f7a923dec059a714d
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-03-13 Andrew Cagney <cagney@redhat.com>
2
3 * frame.c (legacy_frame_p): New function.
4 (get_prev_frame): Use legacy_frame_p.
5 * frame.h (legacy_frame_p): Declare.
6
7 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8
9 * MAINTAINERS (write after approval): Alphabetically
10 listing corrected.
11
12 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
13
14 * MAINTAINERS (write after approval): Add myself.
15
16 2003-03-12 Andrew Cagney <cagney@redhat.com>
17
18 * frame.c (get_prev_frame): Rename the frame parameter to
19 "this_frame".
20 (get_next_frame, legacy_get_prev_frame): Ditto.
21
22 2003-03-12 Andrew Cagney <cagney@redhat.com>
23
24 * frame.c (get_current_frame): Check target_has_registers before
25 checking target_has_stack.
26 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
27 instead of deprecated_selected_frame.
28 * findvar.c (value_of_register): Pass "frame", not
29 deprecated_selected_frame, to value_of_builtin_reg.
30
31 2003-03-12 Andrew Cagney <cagney@redhat.com>
32
33 * regcache.c (regcache_cooked_write_signed): New function.
34 (regcache_cooked_write_unsigned): New function.
35 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
36 (regcache_cooked_read_signed): Fix regnum in range assertion.
37 * regcache.h (regcache_cooked_write_signed): Declare.
38 (regcache_cooked_write_unsigned): Declare.
39
40 2003-03-12 Andrew Cagney <cagney@redhat.com>
41
42 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
43 * gdbarch.h, gdbarch.c: Re-generate.
44 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
45 * x86-64-tdep.h: Update.
46 * x86-64-tdep.c (x86_64_init_abi): Update.
47 * v850-tdep.c (v850_gdbarch_init): Update.
48 * sparc-tdep.c (sparc_gdbarch_init): Update.
49 * sh-tdep.c (sh_gdbarch_init): Update.
50 * s390-tdep.c (s390_gdbarch_init): Update.
51 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
52 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
53 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
54 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
55 * mips-tdep.c (mips_gdbarch_init): Update.
56 * mcore-tdep.c (mcore_gdbarch_init): Update.
57 * m68k-tdep.c (m68k_gdbarch_init): Update.
58 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
59 * ia64-tdep.c (ia64_gdbarch_init): Update.
60 * i386-tdep.c (i386_gdbarch_init): Update.
61 * i386-interix-tdep.c (i386_interix_init_abi): Update.
62 * hppa-tdep.c (hppa_gdbarch_init): Update.
63 * h8300-tdep.c (h8300_gdbarch_init): Update.
64 * frv-tdep.c (frv_gdbarch_init): Update.
65 * cris-tdep.c (cris_gdbarch_init): Update.
66 * avr-tdep.c (avr_gdbarch_init): Update.
67 * arm-tdep.c (arm_gdbarch_init): Update.
68 * alpha-tdep.c (alpha_gdbarch_init): Update.
69 * sh-tdep.c (sh_init_extra_frame_info): Update.
70 (sh64_init_extra_frame_info): Update.
71 * ns32knbsd-nat.c (frame_num_args): Update.
72 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
73 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
74 (xstormy16_frame_chain_valid): Update.
75 * vax-tdep.c (vax_saved_pc_after_call): Update.
76 * v850-tdep.c (v850_frame_chain): Update.
77 (v850_pop_frame): Update.
78 (v850_init_extra_frame_info): Update.
79 * sparc-tdep.c (setup_arbitrary_frame): Update.
80 * ns32k-tdep.c (umax_frame_num_args): Update.
81 * s390-tdep.c (s390_pop_frame_regular): Update.
82 * mn10300-tdep.c (mn10300_frame_chain): Update.
83 (mn10300_pop_frame_regular): Update.
84 (mn10300_init_extra_frame_info): Update.
85 * mips-tdep.c (mips_init_frame_pc_first): Update.
86 (mips_frame_chain): Update.
87 (mips_pop_frame): Update.
88 * mcore-tdep.c (mcore_frame_chain): Update.
89 (mcore_pop_frame): Update.
90 (mcore_init_extra_frame_info): Update.
91 * arch-utils.c (init_frame_pc_default): Update.
92 * m68k-tdep.c (isi_frame_num_args): Update.
93 (delta68_frame_num_args): Update.
94 (news_frame_num_args): Update.
95 * ia64-tdep.c (ia64_pop_frame_regular): Update.
96 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
97 (alpha_frame_chain): Update.
98 (alpha_pop_frame): Update.
99 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
100 (hppa_init_extra_frame_info): Update.
101 (hppa_frame_chain): Update.
102 (hppa_frame_chain_valid): Update.
103 * cris-tdep.c (cris_init_extra_frame_info): Update.
104 * avr-tdep.c (avr_init_extra_frame_info): Update.
105 * arm-tdep.c (arm_frame_chain_valid): Update.
106 (arm_init_extra_frame_info): Update.
107 (arm_pop_frame): Update.
108 * frame.c (frame_pc_unwind): Update.
109 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
110 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
111 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
112 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
113 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
114 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
115
116 2003-03-12 Andrew Cagney <cagney@redhat.com>
117
118 Eliminate the need for POP_FRAME.
119 * frame.c (do_frame_unwind_register): New function.
120 (frame_pop): When no POP_FRAME, pop the frame using register
121 unwind and a scratch regcache.
122 (frame_saved_regs_pop): Delete function.
123 (trad_frame_unwinder): Update.
124 * d10v-tdep.c (d10v_frame_pop): Delete function.
125 (d10v_frame_unwind): Update.
126 * sentinel-frame.c (sentinel_frame_pop): Delete function.
127 (sentinel_frame_unwinder): Update.
128 * dummy-frame.c (dummy_frame_pop): Delete function.
129 (dummy_frame_unwind): Update.
130 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
131 (struct frame_unwind): Update.
132
133 2003-03-11 Kevin Buettner <kevinb@redhat.com>
134
135 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
136 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
137 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
138 Do range checks on register number obtained from debugging info.
139 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
140 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
141 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
142 mapping function.
143 (do_fp_register_row): Fix typo which caused double type to be
144 used when attempting to unpack a float.
145
146 2003-03-11 J. Brobecker <brobecker@gnat.com>
147
148 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
149
150 2003-03-11 Andrew Cagney <cagney@redhat.com>
151
152 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
153 frame. Problem found by Corinna Vinschen.
154
155 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
156
157 * doublest.c (floatformat_from_length): Accept also
158 the real size of 'long double' type.
159
160 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
161
162 From Klee Dienes <kdienes@apple.com>:
163 * breakpoint.c (bpstat_copy): Copy the command lines as well
164 as the old value, to match what is freed in bpstat_clear.
165
166 2003-03-10 David Carlton <carlton@math.stanford.edu>
167
168 * minsyms.c (add_minsym_to_hash_table): Replace
169 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
170 (compare_minimal_symbols, compact_minimal_symbols)
171 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
172 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
173 of DEPRECATED_SYMBOL_MATCHES_NAME.
174 (lookup_minimal_symbol_solib_trampoline): Ditto.
175
176 2003-03-10 Andrew Cagney <cagney@redhat.com>
177
178 * regcache.h (regcache_cooked_read_ftype): Define.
179 (regcache_save, regcache_restore): Add a cooked_read parameter.
180 * regcache.c (regcache_save, regcache_restore): Update.
181 (do_cooked_read): New function.
182 (regcache_cpy): Pass do_cooked_read to regcache_save and
183 regcache_restore.
184
185 2003-03-10 Andrew Cagney <cagney@redhat.com>
186
187 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
188 * gdbarch.h, gdbarch.c: Re-generate.
189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
190 * x86-64-tdep.h: Update.
191 * x86-64-tdep.c (x86_64_init_abi): Update.
192 * v850-tdep.c (v850_gdbarch_init): Update.
193 * sparc-tdep.c (sparc_gdbarch_init): Update.
194 * sh-tdep.c (sh_gdbarch_init): Update.
195 * s390-tdep.c (s390_gdbarch_init): Update.
196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
197 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
198 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
200 * mips-tdep.c (mips_gdbarch_init): Update.
201 * mcore-tdep.c (mcore_gdbarch_init): Update.
202 * m68k-tdep.c (m68k_gdbarch_init): Update.
203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
204 * ia64-tdep.c (ia64_gdbarch_init): Update.
205 * i386-tdep.c (i386_gdbarch_init): Update.
206 * i386-interix-tdep.c (i386_interix_init_abi): Update.
207 * hppa-tdep.c (hppa_gdbarch_init): Update.
208 * h8300-tdep.c (h8300_gdbarch_init): Update.
209 * frv-tdep.c (frv_gdbarch_init): Update.
210 * cris-tdep.c (cris_gdbarch_init): Update.
211 * avr-tdep.c (avr_gdbarch_init): Update.
212 * arm-tdep.c (arm_gdbarch_init): Update.
213 * alpha-tdep.c (alpha_gdbarch_init): Update.
214 * sh-tdep.c (sh_init_extra_frame_info): Update.
215 (sh64_init_extra_frame_info): Update.
216 * ns32knbsd-nat.c (frame_num_args): Update.
217 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
218 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
219 (xstormy16_frame_chain_valid): Update.
220 * vax-tdep.c (vax_saved_pc_after_call): Update.
221 * v850-tdep.c (v850_frame_chain): Update.
222 (v850_pop_frame): Update.
223 (v850_init_extra_frame_info): Update.
224 * sparc-tdep.c (setup_arbitrary_frame): Update.
225 * ns32k-tdep.c (umax_frame_num_args): Update.
226 * s390-tdep.c (s390_pop_frame_regular): Update.
227 * mn10300-tdep.c (mn10300_frame_chain): Update.
228 (mn10300_pop_frame_regular): Update.
229 (mn10300_init_extra_frame_info): Update.
230 * mips-tdep.c (mips_init_frame_pc_first): Update.
231 (mips_frame_chain): Update.
232 (mips_pop_frame): Update.
233 * mcore-tdep.c (mcore_frame_chain): Update.
234 (mcore_pop_frame): Update.
235 (mcore_init_extra_frame_info): Update.
236 * arch-utils.c (init_frame_pc_default): Update.
237 * m68k-tdep.c (isi_frame_num_args): Update.
238 (delta68_frame_num_args): Update.
239 (news_frame_num_args): Update.
240 * ia64-tdep.c (ia64_pop_frame_regular): Update.
241 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
242 (alpha_frame_chain): Update.
243 (alpha_pop_frame): Update.
244 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
245 (hppa_init_extra_frame_info): Update.
246 (hppa_frame_chain): Update.
247 (hppa_frame_chain_valid): Update.
248 * cris-tdep.c (cris_init_extra_frame_info): Update.
249 * avr-tdep.c (avr_init_extra_frame_info): Update.
250 * arm-tdep.c (arm_frame_chain_valid): Update.
251 (arm_init_extra_frame_info): Update.
252 (arm_pop_frame): Update.
253 * frame.c (frame_pc_unwind): Update.
254 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
255 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
256 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
257 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
258 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
259 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
260
261 2003-03-10 Andrew Cagney <cagney@redhat.com>
262
263 * gdbarch.sh (gdbarch_unwind_pc): New method.
264 * gdbarch.h, gdbarch.c: Regenerate.
265 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
266 but use read_pc and FRAME_SAVED_PC as fall backs.
267 (frame_saved_regs_pc_unwind): Delete function.
268 (trad_frame_unwinder): Update.
269 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
270 (struct frame_unwind): Update.
271 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
272 (dummy_frame_unwind): Update.
273 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
274 (sentinel_frame_unwinder): Update.
275 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
276 (d10v_frame_unwind): Update.
277 (d10v_unwind_pc): New function.
278 (d10v_gdbarch_init): Set unwind_pc.
279
280 2003-03-10 Andrew Cagney <cagney@redhat.com>
281
282 * gdbarch.h: Re-generate.
283
284 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
285 PC.
286 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
287 the PC register.
288
289 2003-03-08 Mark Kettenis <kettenis@gnu.org>
290
291 * gdbarch.sh (save_dummy_frame_tos): Add comment.
292
293 2003-03-08 Andrew Cagney <cagney@redhat.com>
294
295 * cli-out.c: Update copyright.
296 (cli_out_data): Define typedef. Use instead of ui_out_data.
297
298 2003-03-08 Andrew Cagney <cagney@redhat.com>
299
300 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
301 the result.
302
303 2003-03-07 Andrew Cagney <cagney@redhat.com>
304
305 * gdbarch.sh: Don't generate two macro definitions when an
306 undefined macro taking no arguments.
307 * gdbarch.h: Regenerate.
308
309 2002-03-07 Michal Ludvig <mludvig@suse.cz>
310
311 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
312 (x86_64_unwind_dummy_id): New functions.
313 (x86_64_init_abi): Register these two new functions.
314
315 2003-03-07 Michal Ludvig <mludvig@suse.cz>
316
317 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
318 (x86_64_skip_prologue): Move prologue detection to
319 separate function.
320 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
321
322 2003-03-05 Andrew Cagney <cagney@redhat.com>
323
324 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
325 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
326 * frame.c (get_prev_frame): Restructure the frame ID unwind code
327 to use unwind_dummy_id when a dummy frame.
328 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
329 predicate.
330 * gdbarch.h, gdbarch.c: Regneerate.
331
332 2003-03-05 Andrew Cagney <cagney@redhat.com>
333
334 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
335 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
336 Do not use d10v_read_sp or d10v_read_fp when obtaining register
337 values.
338
339 2003-03-05 Andrew Cagney <cagney@redhat.com>
340
341 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
342 (struct d10v_unwind_cache): Delete field "frameless". Replace
343 "next_addr" with "sp_offset". Add "r11_offset".
344 (d10v_frame_unwind_cache): Update.
345 (prologue_find_regs): Update. When "mv r11, sp", save the
346 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
347 RN was saved in r11_offset.
348
349 2003-03-05 Andrew Cagney <cagney@redhat.com>
350
351 * frame.c (deprecated_update_frame_pc_hack): Also update the the
352 cached PC value in the next frame.
353
354 2003-03-05 Andrew Cagney <cagney@redhat.com>
355
356 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
357 "id_unwind_cache" with "id".
358 (frame_id_unwind): Delete declaration.
359 * frame.c (frame_id_unwind): Delete function.
360 (get_prev_frame): Call the frame id unwind method directly. Store
361 the returned next frame's ID value in NEXT_FRAME. Note that there
362 is a problem with the wrong unwind ID being called with the wrong
363 unwind cache.
364
365 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
366
367 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
368
369 2003-03-05 James Ingham <jingham@apple.com>
370 Daniel Jacobowitz <drow@mvista.com>
371
372 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
373 (auto_cp_abi): New variable.
374 (current_cp_abi, num_cp_abis): Make static.
375 (CP_ABI_MAX): Define.
376 (cp_abis): Turn into an array.
377 (value_virtual_fn_field): Fix formatting.
378 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
379 takes a pointer.
380 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
381 (list_cp_abis, _initialize_cp_abi): New functions.
382 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
383 declarations for cp_abis, num_cp_abis, current_cp_abi, and
384 switch_to_cp_abi. Update prototype for register_cp_abi.
385 * Makefile.in (cp-abi.o): Update dependencies.
386 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
387 instead of switch_to_cp_abi.
388 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
389 register_cp_abi.
390 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
391 register_cp_abi.
392 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
393
394 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
395
396 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
397 * dwarf2loc.c: Include "regcache.h".
398 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
399 register_size.
400 * Makefile.in (dwarf2loc.o): Update dependencies.
401
402 2003-03-04 Theodore A. Roth <troth@openavr.org>
403
404 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
405 number of io registers reported by remote target is not a multiple of
406 step.
407
408 2003-03-04 David Carlton <carlton@math.stanford.edu>
409
410 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
411 (lookup_symbol_aux_psymtabs): Update call to
412 lookup_partial_symbol.
413 (lookup_transparent_type, find_main_psymtab)
414 (make_symbol_overload_list): Ditto.
415
416 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
417
418 * MAINTAINERS (Write after approval): Update my email address.
419
420 2003-03-03 Andrew Cagney <cagney@redhat.com>
421
422 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
423 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
424 predicate. Replace MAX_REGISTER_RAW_SIZE.
425 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
426 MAX_REGISTER_VIRTUAL_SIZE.
427 * regcache.c (legacy_max_register_raw_size): New function.
428 (legacy_max_register_virtual_size): New function.
429 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
430 (MAX_REGISTER_RAW_SIZE): Define.
431 (legacy_max_register_raw_size): Declare.
432 (legacy_max_register_virtual_size): Declare.
433 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
434 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
435 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
436 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
437 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
438 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
439 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
440 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
441 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
443 * vax-tdep.c (vax_gdbarch_init): Update.
444 * v850-tdep.c (v850_gdbarch_init): Update.
445 * sparc-tdep.c (sparc_gdbarch_init): Update.
446 * sh-tdep.c (sh_gdbarch_init): Update.
447 * s390-tdep.c (s390_gdbarch_init): Update.
448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
451 * mips-tdep.c (mips_gdbarch_init): Update.
452 * mcore-tdep.c (mcore_gdbarch_init): Update.
453 * m68k-tdep.c (m68k_gdbarch_init): Update.
454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
455 * ia64-tdep.c (ia64_gdbarch_init): Update.
456 * i386-tdep.c (i386_gdbarch_init): Update.
457 * hppa-tdep.c (hppa_gdbarch_init): Update.
458 * h8300-tdep.c (h8300_gdbarch_init): Update.
459 * frv-tdep.c (frv_gdbarch_init): Update.
460 * cris-tdep.c (cris_gdbarch_init): Update.
461 * avr-tdep.c (avr_gdbarch_init): Update.
462 * arm-tdep.c (arm_gdbarch_init): Update.
463 * alpha-tdep.c (alpha_gdbarch_init): Update.
464 * d10v-tdep.c (d10v_gdbarch_init): Do not set
465 max_register_raw_size or max_register_virtual_size.
466
467 2003-03-03 David Carlton <carlton@math.stanford.edu>
468
469 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
470 SYMBOL_MATCHES_NAME, add comment.
471 (SYMBOL_MATCHES_NATURAL_NAME): New.
472 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
473 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
474 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
475 * symtab.c (lookup_partial_symbol): Use
476 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
477 unhelpful comment.
478 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
479 SYMBOL_MATCHES_NAME.
480 Fix for PR c++/33.
481
482 2003-03-03 David Carlton <carlton@math.stanford.edu>
483
484 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
485 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
486 by regexp matching against SYMBOL_NATURAL_NAME.
487
488 2003-03-03 David Carlton <carlton@math.stanford.edu>
489
490 * linespec.c (find_method): Extract code into collect_methods.
491 (collect_methods): New.
492
493 2003-03-02 Mark Kettenis <kettenis@gnu.org>
494
495 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
496 get_frame_base.
497
498 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
499 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
500
501 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
502
503 * arch-utils.c (generic_register_byte): Fix to use the loop index
504 and not regnum when summing the size of all registers up to regnum.
505
506 2003-03-01 Andrew Cagney <cagney@redhat.com>
507
508 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
509 FRAME_INIT_SAVED_REGS.
510 * gdbarch.h, gdbarch.c: Regenerate.
511 * stack.c (frame_info): Update.
512 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
513 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
514 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
515 * ns32k-tdep.c (ns32k_pop_frame): Update.
516 * mips-tdep.c (mips_pop_frame): Update.
517 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
518 * ia64-tdep.c (ia64_frame_chain): Update.
519 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
520 (ia64_frameless_function_invocation): Update.
521 (ia64_init_extra_frame_info): Update.
522 (ia64_pop_frame_regular): Update.
523 * frame.h (struct frame_info): Update comment.
524 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
525 * frame.c (frame_saved_regs_register_unwind): Update.
526 (frame_saved_regs_register_unwind): Update.
527 (deprecated_generic_get_saved_register): Update.
528 * cris-tdep.c: Update comment.
529 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
530 Rename macro.
531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
532 * x86-64-tdep.c (x86_64_init_abi): Update.
533 * vax-tdep.c (vax_gdbarch_init): Update.
534 * v850-tdep.c (v850_gdbarch_init): Update.
535 * sparc-tdep.c (sparc_gdbarch_init): Update.
536 * sh-tdep.c (sh_gdbarch_init): Update.
537 * s390-tdep.c (s390_gdbarch_init): Update.
538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
539 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
540 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
542 * mips-tdep.c (mips_gdbarch_init): Update.
543 * mcore-tdep.c (mcore_gdbarch_init): Update.
544 * m68k-tdep.c (m68k_gdbarch_init): Update.
545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
546 * ia64-tdep.c (ia64_gdbarch_init): Update.
547 * i386-tdep.c (i386_gdbarch_init): Update.
548 * frv-tdep.c (frv_gdbarch_init): Update.
549 * avr-tdep.c (avr_gdbarch_init): Update.
550 * arm-tdep.c (arm_gdbarch_init): Update.
551 * alpha-tdep.c (alpha_gdbarch_init): Update.
552
553 2003-03-01 Andrew Cagney <cagney@redhat.com>
554
555 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
556 option enum and switch. When no windows, set the interpreter to
557 INTERP_CONSOLE.
558
559 2003-03-01 Andrew Cagney <cagney@redhat.com>
560
561 * main.c (captured_main): Replace magic option characters with an
562 enum.
563
564 2003-03-01 Andrew Cagney <cagney@redhat.com>
565
566 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
567 INIT_EXTRA_FRAME_INFO.
568 * gdbarch.h, gdbarch.c: Regenerate.
569 * arm-tdep.c: Update comments.
570 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
571 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
572 * frame.h, avr-tdep.c: Ditto.
573 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
574 (create_new_frame, legacy_get_prev_frame): Ditto.
575 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
576 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
578 deprecated_init_extra_frame_info instead of init_extra_frame_info.
579 * x86-64-tdep.c (x86_64_init_abi): Ditto.
580 * v850-tdep.c (v850_gdbarch_init): Ditto.
581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
582 * sh-tdep.c (sh_gdbarch_init): Ditto.
583 * s390-tdep.c (s390_gdbarch_init): Ditto.
584 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
585 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
586 * mips-tdep.c (mips_gdbarch_init): Ditto.
587 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
589 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
590 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
591 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
592 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
593 * frv-tdep.c (frv_gdbarch_init): Ditto.
594 * cris-tdep.c (cris_gdbarch_init): Ditto.
595 * avr-tdep.c (avr_gdbarch_init): Ditto.
596 * arm-tdep.c (arm_gdbarch_init): Ditto.
597 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
598 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
599
600 2003-03-01 Andrew Cagney <cagney@redhat.com>
601
602 * gdbarch.sh (register_type): New function with predicate.
603 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
604 * gdbarch.h, gdbarch.c: Re-generate.
605 * arch-utils.c (generic_register_byte): Use generic_register_size.
606 (generic_register_size): When available, use
607 gdbarch_register_type.
608 * regcache.c (init_regcache_descr): When available, initialize the
609 register type array using gdbarch_register_type. If the
610 architecture supplies gdbarch_register_type, do not use the legacy
611 regcache layout.
612 * d10v-tdep.c (d10v_register_type): Replace
613 d10v_register_virtual_type.
614 (d10v_gdbarch_init): Set register_type instead of
615 register_virtual_type.
616
617 2003-03-01 Andrew Cagney <cagney@redhat.com>
618
619 * Makefile.in (ax-gdb.o): Update dependencies.
620 * ax-gdb.c: Include "regcache.h".
621 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
622 * findvar.c (value_of_register): Ditto.
623 * infcmd.c (default_print_registers_info): Ditto.
624
625 2003-03-01 Mark Kettenis <kettenis@gnu.org>
626
627 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
628 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
629
630 2003-03-01 Mark Kettenis <kettenis@gnu.org>
631
632 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
633 of STREQ.
634
635 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
636
637 * Makefile.in (dwarf2loc.o): Update dependencies.
638 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
639 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
640 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
641 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
642 (locexpr_tracepoint_var_ref): New function.
643 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
644
645 2003-02-28 Andrew Cagney <cagney@redhat.com>
646
647 * regcache.c (register_size): New function.
648 * regcache.h (register_size): Declare
649 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
650 max_register_size instead of MAX_REGISTER_RAW_SIZE.
651
652 2003-02-28 David Carlton <carlton@math.stanford.edu>
653
654 * linespec.c (decode_compound): Extract code into find_method.
655 (find_method): New.
656
657 2003-02-28 J. Brobecker <brobecker@gnat.com>
658
659 * Makefile.in: Add rules to build and link in observer.o.
660
661 2003-02-27 J. Brobecker <brobecker@gnat.com>
662
663 * observer.c: Minor comments edits.
664
665 2003-02-27 J. Brobecker <brobecker@gnat.com>
666
667 * observer.h, observer.c: New file.
668
669 2003-02-27 Andrew Cagney <cagney@redhat.com>
670
671 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
672
673 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
674
675 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
676 (M6812_OP_STS_EXT): Likewise.
677 (m6811_prologue): Use the above to recognize prologue.
678 (m6812_prologue): Likewise.
679
680 2003-02-27 David Carlton <carlton@math.stanford.edu>
681
682 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
683 SYMBOL_PRINT_NAME.
684 (compare_psymbols): Ditto.
685 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
686
687 2003-02-27 Michael Snyder <msnyder@redhat.com>
688
689 * f-lang.c (build_fortran_types): New function.
690 (_initialize_f_language): Gdbarch-register built-in fortran types.
691 * doublest.c (extract_floating): Fix warning text.
692
693 2003-02-27 Andrew Cagney <cagney@redhat.com>
694
695 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
696 predicate. Replaces PUSH_DUMMY_FRAME.
697 * gdbarch.h, gdbarch.c: Regnerate.
698 * valops.c (hand_function_call): Update. Call
699 generic_push_dummy_frame directly.
700 * vax-tdep.c (vax_gdbarch_init): Update.
701 * sparc-tdep.c (sparc_gdbarch_init): Update.
702 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
703 * m68k-tdep.c (m68k_gdbarch_init): Update.
704 * hppa-tdep.c (hppa_gdbarch_init): Update.
705 * alpha-tdep.c (alpha_gdbarch_init): Update.
706 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
707 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
708 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
710 push_dummy_frame to generic_push_dummy_frame.
711 * v850-tdep.c (v850_gdbarch_init): Ditto.
712 * sh-tdep.c (sh_gdbarch_init): Ditto.
713 * s390-tdep.c (s390_gdbarch_init): Ditto.
714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
715 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
716 * mips-tdep.c (mips_gdbarch_init): Ditto.
717 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
719 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
720 * i386-tdep.c (i386_gdbarch_init): Ditto.
721 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
722 * frv-tdep.c (frv_gdbarch_init): Ditto.
723 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
724 * cris-tdep.c (cris_gdbarch_init): Ditto.
725 * avr-tdep.c (avr_gdbarch_init): Ditto.
726 * arm-tdep.c (arm_gdbarch_init): Ditto.
727
728 2003-02-26 Kevin Buettner <kevinb@redhat.com>
729
730 * mips-tdep.c (show_mips_abi): New function.
731 (_initialize_mips_tdep): Use show_mips_abi() to implement the
732 command ``show mips abi''.
733
734 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
735
736 From Elena Zannoni <ezannoni@redhat.com>
737 * dbxread.c (process_one_symbol): Only record line 0 if one or
738 more sline entries have been seen for the function.
739
740 2003-02-26 Michael Chastain <mec@shout.net>
741
742 * configure: Regenerate with autoconf 000227.
743
744 2003-02-26 Michael Chastain <mec@shout.net>
745
746 Close PR build/660.
747 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
748 for old libc5/glibc.
749 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
750
751 2003-02-26 Kris Warkentin <kewarken@qnx.com>
752
753 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
754 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
755
756 2003-02-26 Michael Chastain <mec@shout.net>
757
758 * configure.in: New variable HAVE_UINTPTR_T.
759 * configure, config.in: Regenerated.
760
761 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
762
763 Fix PR build/1097.
764 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
765
766 2003-02-25 Andrew Cagney <cagney@redhat.com>
767
768 * frame.c (get_prev_frame): Add comment on check for
769 inside_entry_func. Only check for inside_entry_file when not a
770 dummy and not a sentinel. Check that the new frame is not inner
771 to the old frame.
772
773 2003-02-25 Andrew Cagney <cagney@redhat.com>
774
775 * frame.c (frame_debug): New variable.
776 (_initialize_frame): Add "set/show debug frame" command.
777 (get_prev_frame): When frame_debug, print reason why unwind
778 failed.
779
780 2003-02-25 Michael Chastain <mec@shout.net>
781
782 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
783 to avoid uintptr_t definition problems.
784
785 2003-02-25 David Carlton <carlton@math.stanford.edu>
786
787 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
788 (SYMBOL_LINKAGE_NAME): Ditto.
789 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
790 SYMBOL_LINKAGE_NAME.
791 (struct general_symbol_info): Expand comment.
792 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
793 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
794 (SYMBOL_MATCHES_REGEXP): Ditto.
795 * symtab.c (symbol_natural_name): New function.
796 * objfiles.h: Replace all uses of SYMBOL_NAME by
797 DEPRECATED_SYMBOL_NAME.
798 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
799 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
800 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
801 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
802 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
803 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
804 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
805 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
806 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
807 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
808 * ada-exp.y: Ditto.
809 * ada-exp.y: Update copyright.
810 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
811 * cp-valprint.c: Ditto.
812
813 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
814
815 * infptrace.c (detach): Do not flag error if ptrace detach fails
816 and errno is set to ESRCH.
817
818 2003-02-24 Andrew Cagney <cagney@redhat.com>
819
820 * infptrace.c (udot_info): Change type of udot_off to long. Use
821 paddr when printing udot_off's value.
822
823 2003-02-24 David Carlton <carlton@math.stanford.edu>
824
825 * symtab.c (make_symbol_overload_list): Only read in partial
826 symtabs containing a matching partial symbol.
827
828 2003-02-24 David Carlton <carlton@math.stanford.edu>
829
830 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
831 do the comparison, not strcmp.
832 * symfile.c (compare_psymbols): Ditto.
833 * defs.h: Declare strcmp_iw_ordered.
834 * utils.c (strcmp_iw_ordered): New function.
835
836 2003-02-24 Jim Blandy <jimb@redhat.com>
837
838 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
839 support, shared libs): Remove my name from here, to better reflect
840 reality.
841
842 2003-02-24 Kris Warkentin <kewarken@qnx.com>
843
844 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
845 (target_ops): Add to_have_continuable_watchpoint.
846 * target.c (update_current_target): Add INHERIT line for
847 to_have_continuable_watchpoint.
848 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
849 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
850 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
851 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
852
853 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
854
855 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
856 maintainership.
857
858 2003-02-24 Kris Warkentin <kewarken@qnx.com>
859
860 * solib.c (solib_open): Call target defined search function after
861 failing with solib-search-path.
862 * solist.h (target_so_ops): Add find_and_open_solib function hook and
863 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
864
865 2003-02-24 Kris Warkentin <kewarken@qnx.com>
866
867 * MAINTAINERS: Add myself to Write After section.
868
869 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
870
871 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
872
873 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
874
875 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
876 (m68hc11_add_reggroups): New function.
877 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
878 (m68hc11_gdbarch_init): Install the reggroups.
879 (_initialize_m68hc11_tdep): Initialize them.
880
881 2003-02-21 James E Wilson <wilson@tuliptree.org>
882
883 * MAINTAINERS: Update my email address.
884
885 2003-02-21 David Carlton <carlton@math.stanford.edu>
886
887 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
888
889 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
890
891 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
892 * symtab.h: Add opaque declarations of struct axs_value and
893 struct agent_expr.
894 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
895 (struct location_funcs): New type.
896 (struct symbol): Add "loc" to aux_value.
897 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
898 * dwarf2read.c: Include "dwarf2expr.h".
899 (dwarf2_symbol_mark_computed): New function.
900 (read_func_scope): Use it.
901 (var_decode_location): New function.
902 (new_symbol): Use it.
903 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
904
905 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
906 (dwarf2expr_h, dwarf2loc_h): New variables.
907 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
908 (dwarf2expr.o, dwarf2loc.o): New rules.
909 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
910 * buildsym.c (finish_block): Handle LOC_COMPUTED and
911 LOC_COMPUTED_ARG.
912 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
913 * m2-exp.y (yylex): Likewise.
914 * printcmd.c (address_info, print_frame_args): Likewise.
915 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
916 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
917 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
918 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
919 * symtab.c (lookup_block_symbol): Likewise.
920
921 2003-02-20 Adam Fedor <fedor@gnu.org>
922
923 * symtab.h: Remove objc_specific struct
924 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
925 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
926 Have language_objc use cplus_specific struct.
927
928 2003-02-20 Tom Tromey <tromey@redhat.com>
929
930 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
931 TYPE_NAME, when printing a String value. PR java/1075.
932
933 2003-02-20 Adam Fedor <fedor@gnu.org>
934
935 * objc-lang.h (find_methods): Remove declaration.
936 * objc-lang.c (find_methods): Make static.
937
938 2003-02-20 Christopher Faylor <cgf@redhat.com>
939
940 * win32-nat.c (get_image_name): Check return value from
941 ReadProcessMemory.
942 (child_xfer_memory): Ditto.
943
944 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
945
946 * configure.in (TARGET_SYSTEM_ROOT): Set default to
947 ${exec_prefix}/${target_alias}/sys-root. Match explicit
948 '${exec_prefix}' (in addition to the expansion thereof) as
949 relocatable.
950 * configure: Rebuilt.
951
952 2003-02-20 David Carlton <carlton@math.stanford.edu>
953
954 * symtab.c (search_symbols): Revert the search_symbols part of my
955 2002-12-23 patch. Add comment.
956
957 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
958
959 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
960 * dbxread.c (elfstab_build_psymtabs): Don't call
961 install_minimal_symbols.
962 (stabsect_build_psymtabs): Likewise.
963 * elfread.c (elf_symfile_read): Call install_minimal_symbols
964 earlier.
965 * somread.c (som_symfile_read): Call install_minimal_symbols
966 and do_cleanups earlier.
967 * nlmread.c (nlm_symfile_read): Likewise.
968 * mdebugread.c (elfmdebug_build_psymtabs): Call
969 install_minimal_symbols and make appropriate cleanups.
970
971 2003-02-20 Kevin Buettner <kevinb@redhat.com>
972
973 * solib.c (reload_shared_libraries): New function.
974 (_initialize_solib): Add callbacks for ``set solib-search-path''
975 and ``set solib-absolute-prefix''.
976
977 2003-02-20 David Carlton <carlton@math.stanford.edu>
978
979 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
980 expand comment.
981 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
982 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
983 * ada-typeprint.c (ada_typedef_print): Ditto.
984 * ax-gdb.c (gen_var_ref): Ditto.
985 * breakpoint.c (print_one_breakpoint): Ditto.
986 * buildsym.c (finish_block): Ditto.
987 * c-valprint.c (c_val_print): Ditto.
988 * expprint.c (print_subexp): Ditto.
989 * findvar.c (locate_var_value): Ditto.
990 * infcmd.c (jump_command): Ditto.
991 * linespec.c (decode_line_2, decode_compound): Ditto.
992 * maint.c (maintenance_translate_address): Ditto.
993 * objc-lang.c (compare_selectors, compare_classes): Ditto.
994 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
995 Ditto.
996 * p-valprint.c (pascal_val_print): Ditto.
997 * stabsread.c (define_symbol): Ditto.
998 * stack.c (print_frame, frame_info, print_block_frame_locals)
999 (print_frame_arg_vars, return_command): Ditto.
1000 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1001 * symmisc.c (print_symbol): Ditto.
1002 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1003 (compare_search_syms, print_symbol_info, print_msymbol_info)
1004 (rbreak_command): Ditto.
1005 * tracepoint.c (tracepoints_info): Ditto.
1006 * typeprint.c (typedef_print): Ditto.
1007 * valops.c (value_of_variable, hand_function_call): Ditto.
1008 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1009 * ada-typeprint.c: Update Copyright.
1010 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1011 * tracepoint.c, cli/cli-cmds.c: Ditto.
1012
1013 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1014
1015 * frame.c (generic_unwind_get_saved_register): Make non-static.
1016 * frame.h (generic_unwind_get_saved_register): Declare.
1017 * mips-tdep.c (read_next_frame_reg): Fetch register from
1018 current regcache when frame is NULL.
1019 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1020 that must be NULL.
1021 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1022 instead of frame_register_unwind().
1023
1024 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1025
1026 * remote-sim.c (gdbsim_insert_breakpoint)
1027 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1028 code.
1029
1030 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1031
1032 * remote.c (_initialize_remote): Add commands "set/show remote
1033 hardware-watchpoint-limit" and "set/show remote
1034 hardware-breakpoint-limit".
1035 (remote_hw_watchpoint_limit): Initialize to -1.
1036 (remote_hw_breakpoint_limit): Ditto.
1037 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1038
1039 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1040
1041 * coff-pe-read.c: New file - support reading of minimal symbols from a
1042 portable executable using the export table.
1043 * coff-pe-read.h: New file.
1044 * coffread.c: Include coff-pe-read.h.
1045 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1046 debugging symbols found.
1047 * Makefile.in (SFILES): Add coff-pe-read.o.
1048 (coff_pe_read_h): Define.
1049 (COMMON_OBS): Add coff-pe-read.o.
1050 (coffread.o): Add coff_pe_read_h dependency.
1051 (coff-pe-read.o): New target.
1052
1053 2003-02-19 David Carlton <carlton@math.stanford.edu>
1054
1055 * Makefile.in (SFILES): Add block.c.
1056 (block_h): New.
1057 (COMMON_OBS): Add block.o.
1058 (block.o): New.
1059 (x86-64-tdep.o): Add $(block_h).
1060 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1061 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1062 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1063 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1064 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1065 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1066 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1067 * value.h: Add opaque declaration for struct block.
1068 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1069 * ada-lang.h: Ditto.
1070 * x86-64-tdep.c: #include "block.h"
1071 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1072 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1073 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1074 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1075 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1076 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1077 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1078 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1079 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1080 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1081 * symtab.c (block_function): Ditto.
1082 (contained_in): Ditto.
1083 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1084 block.h. Add opaque declaration for struct block.
1085 * symtab.h: Move block_function and contained_in declarations to
1086 block.h. Add opaque declarations for struct block, struct
1087 blockvector.
1088 (struct block): Move to block.h.
1089 (struct blockvector): Ditto.
1090 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1091 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1092 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1093 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1094 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1095 Ditto.
1096 * block.c: New file.
1097 * block.h: New file.
1098
1099 2003-02-19 Theodore A. Roth <troth@openavr.org>
1100
1101 * avr-tdep.c (avr_extract_return_value): Remove function.
1102 (avr_store_return_value): Remove function.
1103 (avr_extract_struct_value_address): Remove function.
1104 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1105
1106 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1107
1108 * rs6000-tdep.c: Include "gdb_assert.h".
1109 (registers_e500): Add "acc" and "spefscr".
1110 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1111 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1112 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1113 really is "r0".
1114 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1115
1116 2003-02-18 Keith Seitz <keiths@redhat.com>
1117
1118 * Makefile.in: Add gdbtk-interps.c.
1119
1120 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1121
1122 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1123 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1124
1125 2003-02-18 Andrew Cagney <cagney@redhat.com>
1126
1127 * symtab.h (struct objfile): Add opaque declaration.
1128
1129 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
1130
1131 From Jim Ingham <jingham@apple.com>:
1132 * dbxread.c (process_one_symbol): Use last_function_start rather
1133 than function_start_offset to find the real beginning of the
1134 current function. The latter is just the text section offset on
1135 some systems, the former is always the real function start.
1136
1137 2003-02-17 Andrew Cagney <cagney@redhat.com>
1138
1139 * configure.in: Revert ${target} != ${host}.
1140
1141 2003-02-17 Andrew Cagney <ac131313@redhat.com>
1142
1143 * configure.in (Makefile): Use the test ${target} != ${host},
1144 instead of the absence of the "nm.h" file, to determine of the
1145 configuration non-native.
1146 * configure: Regenerate.
1147
1148 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
1149
1150 From Brian Ford <ford@vss.fsi.com>
1151
1152 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1153 conditionalize tui_active test.
1154 (lookup_cmd_1): Ditto.
1155
1156 2003-02-14 Mark Kettenis <kettenis@gnu.org>
1157
1158 * configure.in: Add check for _etext.
1159 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1160 available.
1161 * config.in, configure: regenerated.
1162
1163 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
1164
1165 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1166
1167 2003-02-14 Andrew Cagney <ac131313@redhat.com>
1168
1169 * main.c (tui_version): Delete variable.
1170 (captured_main): When --tui, set interpreter_p to "tui" instead of
1171 enabling tui_version.
1172 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1173 tui_version.
1174 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1175 * cli/cli-cmds.c (disassemble_command): Ditto.
1176 * defs.h (tui_version): Delete declaration.
1177 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1178 (tui-interp.o): Add rules.
1179 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1180
1181 2003-02-14 Christopher Faylor <cgf@redhat.com>
1182
1183 * win32-nat.c (register_loaded_dll): Correctly set address range for
1184 just-loaded dll.
1185
1186 2003-02-12 Jason Molenda (jmolenda@apple.com)
1187
1188 * symmisc.c (print_objfile_statistics): Include information about
1189 the number of psymtabs and symtabs in each object file.
1190
1191 2003-02-13 Keith R Seitz <keiths@redhat.com>
1192
1193 * main.h (struct captured_main_args): Add interpreter_p.
1194 * main.c (captured_main): Initialize interpreter_p from context.
1195 * gdb.c (main): Set interpreter_p argument.
1196 * Makefile.in (gdb.o): Add dependency for interps.h.
1197
1198 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1199
1200 * event-top.c (cli_command_loop): Delete declaration.
1201 (_initialize_event_loop): Delete function setting event_loop_hook.
1202 * event-top.h (cli_command_loop): Declare. Update copyright.
1203 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1204 * interps.c (current_interp_command_loop): When event_loop_p, call
1205 cli_command_loop.
1206
1207 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1208
1209 * interps.h (interp_command_loop_ftype): Change return type to
1210 void.
1211
1212 2003-02-12 Michal Ludvig <mludvig@suse.cz>
1213
1214 * x86-64-tdep.c (x86_64_extract_return_value)
1215 (x86_64_store_return_value): Use regcache instead of regbuf.
1216 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1217 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1218
1219 2003-02-11 Andrew Cagney <ac131313@redhat.com>
1220
1221 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1222 * aclocal.m4: Regenerate.
1223 * configure: Regenerate.
1224
1225 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1226 TCL_LD_SEARCH_FLAGS.
1227
1228 2003-02-10 Michal Ludvig <mludvig@suse.cz>
1229
1230 * dwarf2cfi.c: Reindented.
1231
1232 2003-02-09 Andrew Cagney <ac131313@redhat.com>
1233
1234 * interps.c (clear_interpreter_hooks): Convert function definition
1235 to ISO C.
1236
1237 2003-02-07 David Carlton <carlton@math.stanford.edu>
1238
1239 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1240
1241 2003-02-07 Kevin Buettner <kevinb@redhat.com>
1242
1243 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1244 (struct type): ...to here.
1245 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1246 field.
1247 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1248 (replace_type): Set length on all type variants for a given type.
1249
1250 2003-02-07 Andrew Cagney <ac131313@redhat.com>
1251
1252 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1253 <sys/stat.h>.
1254 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1255
1256 2003-02-06 Andrew Cagney <ac131313@redhat.com>
1257
1258 * Makefile.in (symm-nat.o): Update dependencies.
1259 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1260 (lynx-nat.o, ia64-linux-nat.): Ditto.
1261 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1262 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1263 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1264
1265 * Makefile.in (inflow_h): Define.
1266 (procfs.o, inflow.o, procfs.o): Update dependencies.
1267 * inftarg.c (child_stop): Delete extern declaration of
1268 inferior_process_group. Include "inflow.h".
1269 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1270 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1271 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1272 (our_process_group, inferior_process_group): Extern declarations.
1273
1274 * procfs.c: Include "gdb_assert.h".
1275
1276 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1277 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1278 * jv-typeprint.c (java_type_print_base): Ditto.
1279 * typeprint.c (typedef_print): Eliminate STREQ.
1280 * cli/cli-script.c (define_command, define_command): Ditto.
1281 * main.c (captured_main): Ditto.
1282 * values.c (lookup_internalvar): Ditto.
1283 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1284 within `if' conditional.
1285 * linespec.c (decode_line_2): Ditto.
1286 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1287 (bfd_openw_with_cleanup): Ditto.
1288
1289 2003-02-07 Mark Kettenis <kettenis@gnu.org>
1290
1291 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1292 legacy_extract_return_value and store_return_value to
1293 legacy_return_value.
1294
1295 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1296
1297 * win32-nat.c (get_relocated_section_addrs): New function. Find
1298 section load addresses for symbol handling in relocated DLLs.
1299 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1300
1301 2003-02-05 Fred Fish <fnf@intrinsity.com>
1302
1303 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1304 '=' and '!='.
1305 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1306 with '&' and '=='.
1307 (angel_RDI_info): Ditto.
1308 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1309 with '&' and '!='.
1310 (threads_continue_all_with_signals): Ditto.
1311
1312 2003-02-05 Jim Ingham <jingham@apple.com>
1313 Keith Seitz <keiths@redhat.com>
1314 Elena Zannoni <ezannoni@redhat.com>
1315 Andrew Cagney <ac131313@redhat.com>
1316
1317 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1318 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1319 (SUBDIR_MI_OBS): Add "mi-interp.o".
1320 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1321 (SFILES): Add "interps.c".
1322 (COMMON_OBS): Add "interps.o".
1323 (interps_h, mi_main_h): Define.
1324 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1325 (mi-main.o, main.o, event-top.o): Update dependencies.
1326 * cli/cli-interp.c: New file.
1327 * interps.h, interps.c: New files.
1328 * top.c: (gdb_init): Don't install the default interpreter, handed
1329 by captured_main.
1330 * main.c: Include "interps.h".
1331 (interpreter_p): Note that it should malloc'ed.
1332 (captured_command_loop): Call current_interp_command_loop.
1333 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1334 xfree and xstrdup when updating interpreter_p. Install the
1335 default interpreter. Add hack to stop mi1's copyright notice
1336 being encoded.
1337 * event-top.h (gdb_setup_readline): Declare.
1338 (gdb_disable_readline): Declare.
1339 * event-top.c: Include "interps.h".
1340 (display_gdb_prompt): Call current_interp_display_prompt_p.
1341 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1342 gdb_stdlog, and gdb_stdtarg.
1343 (_initialize_event_loop): Don't call gdb_setup_readline.
1344 * cli-out.c (cli_out_set_stream): New function.
1345 * cli-out.h (cli_out_set_stream): Declare.
1346
1347 2003-02-06 Mark Kettenis <kettenis@gnu.org>
1348
1349 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1350 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1351 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1352 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1353 config/i386/i386v42mp.mt: Removed.
1354
1355 2003-02-05 Mark Kettenis <kettenis@gnu.org>
1356
1357 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1358 GDB_OSABI_SOLARIS.
1359
1360 2003-02-05 Michael Chastain <mec@shout.net>
1361
1362 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1363 2.12.1 and earlier versions.
1364
1365 2003-02-05 Andrew Cagney <ac131313@redhat.com>
1366
1367 Remove orphaned hosts, targets and files.
1368 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1369 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1370 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1371 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1372 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1373 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1374 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1375 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1376 * config/sparc/tm-sp64sim.h: Delete.
1377 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1378 hosts.
1379 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1380 mips*-dec-mach3* targets.
1381
1382 2003-02-04 Michael Chastain <mec@shout.net>
1383
1384 * NEWS: Fix typo: sepcifying -> specifying.
1385
1386 2003-02-04 Michael Chastain <mec@shout.net>
1387
1388 * dwarfread.c: Add documentation on the state of dwarf-1,
1389 looking towards obsoletion.
1390
1391 2003-02-03 Michael Chastain <mec@shout.net>
1392
1393 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1394 gdb/testsuite/gdb.c++/pr-1023.exp.
1395
1396 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1397
1398 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1399 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1400
1401 * utils.c (init_page_info): Delete reference to MPW in comments.
1402 * main.c (captured_main): Delete #ifdef MPW.
1403
1404 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1405
1406 * NEWS: Note that the m32r-*-elf* is obsolete.
1407 * monitor.c (monitor_expect): Obsolete reference to m32r.
1408 * configure.tgt: Mark m32r-*-elf* as obsolete.
1409 * MAINTAINERS: Mark m32k as obsolete.
1410 * m32r-rom.c: Obsolete file.
1411 * config/m32r/m32r.mt: Obsolete file.
1412 * config/m32r/tm-m32r.h: Obsolete file.
1413 * m32r-stub.c: Obsolete file.
1414 * m32r-tdep.c: Obsolete file.
1415
1416 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1417
1418 * NEWS: Mention that the z8k-zilog-none is obsolete.
1419 * MAINTAINERS: Mark z8k as obsolete.
1420 * configure.tgt: Obsolete the z8k-*-coff* target.
1421 * config/z8k/z8k.mt: Obsolete file.
1422 * config/z8k/tm-z8k.h: Obsolete file.
1423 * z8k-tdep.c: Obsolete file.
1424
1425 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1426
1427 * NEWS: Mention that the mn10200-elf is obsolete.
1428 * configure.tgt: Obsolete mn10200-*-* target.
1429 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1430 mention that the mn10200 is obsolete.
1431 * breakpoint.h: Ditto.
1432 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1433 * config/mn10200/mn10200.mt: Obsolete file.
1434 * config/mn10200/tm-mn10200.h: Obsolete file.
1435 * mn10200-tdep.c: Obsolete file.
1436
1437 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1438
1439 * MAINTAINERS: Mark h8500 as obsolete.
1440 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1441 * findvar.c (value_from_register): Ditto.
1442 * h8500-tdep.c: Mark file as obsolete.
1443 * config/h8500/h8500.mt: Ditto.
1444 * config/h8500/tm-h8500.h: Ditto.
1445 * NEWS: Mention that h8500 is obsolete.
1446
1447 2003-02-04 David Carlton <carlton@math.stanford.edu>
1448
1449 * objfiles.c (allocate_objfile): Always set name. Add comment at
1450 start of function.
1451 * jv-lang.c (get_dynamics_objfile): Add comment.
1452
1453 2003-02-04 David Carlton <carlton@math.stanford.edu>
1454
1455 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1456 * printcmd.c (build_address_symbolic): Replace uses of
1457 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1458 SYMBOL_NAME, and asm_demangle.
1459 Update copyright.
1460
1461 2003-02-04 David Carlton <carlton@math.stanford.edu>
1462
1463 * linespec.c (decode_compound): Extract code into
1464 lookup_prefix_sym.
1465 (lookup_prefix_sym): New function.
1466
1467 2003-02-04 David Carlton <carlton@math.stanford.edu>
1468
1469 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1470 FLOAT_COERCION_BADNESS.
1471 * gdbtypes.c (rank_one_type): Replace all uses of
1472 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1473
1474 2003-02-04 Jim Blandy <jimb@redhat.com>
1475
1476 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1477 section, let dwarf_macinfo_section point to it, not
1478 dwarf_loc_section.
1479
1480 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1481
1482 Pointed out by Anton Blanchard <anton@samba.org>.
1483 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1484 (ppc_linux_at_sigtramp_return_path): Use it.
1485
1486 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1487
1488 * defs.h (streq): Add prototype.
1489 * utils.c (streq): New function.
1490
1491 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1492 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1493 * mdebugread.c (new_symbol): Likewise.
1494 * stabsread.c (define_symbol): Likewise.
1495 * coffread.c (process_coff_symbol): Likewise.
1496 * dwarfread.c (new_symbol): Likewise.
1497
1498 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1499 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1500 here.
1501 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1502 SYMBOL_INIT_DEMANGLED_NAME.
1503 * objfiles.c: Include "hashtab.h".
1504 (allocate_objfile): Call htab_set_functions_ex for the
1505 demangled_names_hash.
1506 (free_objfile): Call htab_delete for the demangled_names_hash.
1507 * objfiles.h (struct htab): Add declaration.
1508 (struct objfile): Add demangled_names_hash.
1509 * symfile.c: Include "hashtab.h".
1510 (reread_symbols): Call htab_delete for the demangled_names_hash.
1511 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1512 SYMBOL_NAME in the bcache.
1513 * symtab.c: Include "hashtab.h". Update comments.
1514 (create_demangled_names_hash, symbol_set_names): New functions.
1515 (symbol_find_demangled_name): New function, broken out from
1516 symbol_init_demangled_names.
1517 (symbol_init_demangled_names): Use it.
1518 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1519 (SYMBOL_SET_NAMES): New macro.
1520 (symbol_set_names): Add prototype.
1521
1522 2003-02-03 Jim Blandy <jimb@redhat.com>
1523
1524 Use a single, consistent representation for an empty minimal
1525 symbol table in an objfile.
1526 * objfiles.c (terminate_minimal_symbol_table): New function.
1527 (allocate_objfile): Call it.
1528 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1529 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1530 non-NULL.
1531 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1532 objfile has minimal symbols, compare minimal_symbol_count to zero,
1533 instead of comparing msymbols with NULL.
1534 * objfiles.c (have_minimal_symbols): Same.
1535 * solib-sunos.c (solib_add_common_symbols): Call
1536 terminate_minimal_symbol_table.
1537 * symfile.c (reread_symbols): Same.
1538
1539 2003-02-03 Kevin Buettner <kevinb@redhat.com>
1540
1541 * s390-tdep.c (s390_address_class_type_flags)
1542 (s390_address_class_type_flags_to_name)
1543 (s390_address_class_name_to_type_flags): New functions.
1544 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1545 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1546
1547 2003-02-03 Michael Snyder <msnyder@redhat.com>
1548
1549 * arm-tdep.c: Fix spell-o in comment.
1550
1551 2003-02-03 Michal Ludvig <mludvig@suse.cz>
1552
1553 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1554 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1555 error messages to contain BFD filename.
1556
1557 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
1558
1559 Fix PR gdb/742 gdb/743 gdb/877
1560 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1561 (do_mixed_source_and_assembly): Use
1562 make_cleanup_ui_out_tuple_begin_end and
1563 make_cleanup_ui_out_tuple_begin_end.
1564 (do_mixed_source_and_assembly): Ditto.
1565 * thread.c (do_captured_list_thread_ids): Ditto.
1566 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1567 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1568 ui_out_tuple_end): Delete prototypes.
1569 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1570 ui_out_list_end, ui_out_tuple_end): Delete.
1571
1572 From Kevin Buettner <kevinb@redhat.com>:
1573 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1574 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1575 (do_cleanup_table_end): New functions.
1576 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1577 Use cleanups to invoke_ui_out_tuple_end().
1578 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1579 * cli/cli-setshow.c (cmd_show_list): Use
1580 make_cleanup_ui_out_tuple_begin_end.
1581
1582 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1583
1584 * frame.c (frame_unwind_register): New function.
1585 (frame_unwind_unsigned_register): Use.
1586 (frame_unwind_signed_register): Use.
1587 (frame_read_register): New function.
1588 * frame.h (frame_unwind_register): Declare.
1589 (frame_read_register): Declare.
1590
1591 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1592 and frame_unwind_register instead of read_memory, write_register
1593 and deprecated_write_register_bytes.
1594
1595 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1596
1597 * frame.h: Note that namelen can be negative.
1598 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1599 NAME's length.
1600
1601 * NEWS: Mention that the d10v's `regs' command is deprecated.
1602 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1603 (d10v_print_registers_info): New function.
1604 (show_regs): Call d10v_print_registers_info.
1605 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1606
1607 2003-02-02 Mark Kettenis <kettenis@gnu.org>
1608
1609 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1610 lost in the previous patch.
1611
1612 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1613
1614 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1615 * stack.c (print_frame_info_base): Output complete FRAME tuple
1616 for synthesized frames.
1617
1618 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1619
1620 * mips-nat.c (zerobuf): Delete.
1621 (fetch_inferior_registers): Alloc local zerobuf.
1622 (fetch_core_registers): Alloc local zerobuf.
1623 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1624 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1625 * thread-db.c (thread_db_store_registers): Ditto.
1626 * sh-tdep.c (sh_do_register): Ditto.
1627 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1628 * remote-sim.c (gdbsim_store_register): Ditto.
1629 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1630 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1631 * monitor.c (monitor_supply_register): Ditto.
1632 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1633 * mips-nat.c (fetch_inferior_registers): Ditto.
1634 * m68klinux-nat.c (fetch_register): Ditto.
1635 * lynx-nat.c (fetch_inferior_registers): Ditto.
1636 (fetch_inferior_registers): Ditto.
1637 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1638 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1639 (hpux_thread_store_registers): Ditto.
1640 * hppah-nat.c (fetch_register): Ditto.
1641 * hppab-nat.c (fetch_register): Ditto.
1642 * hppa-tdep.c (pa_register_look_aside): Ditto.
1643 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1644 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1645
1646 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1647
1648 * gdbarch.sh: Explictly specify all method levels. When a
1649 variable with an empty level, provide a non-multi-arch default.
1650 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1651 * gdbarch.h: Re-generate.
1652 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1653 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1654
1655 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1656
1657 * defs.h (host_pointer_to_address): Delete declaration.
1658 (address_to_host_pointer): Delete declaration.
1659 * utils.c (host_pointer_to_address): Delete function.
1660 (address_to_host_pointer): Delete function.
1661 * procfs.c (procfs_address_to_host_pointer): New function.
1662 * procfs.c (proc_set_watchpoint): Use.
1663 (procfs_can_use_hw_breakpoint): Update comments.
1664 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1665 (som_solib_add): Use.
1666 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1667 * hppa-tdep.c (unwind_command): Use.
1668
1669 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1670
1671 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1672 strlen d_name.
1673
1674 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1675 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1676 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1677 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1678 (define_symbol): Update.
1679 * symfile.c (generic_load): Remove references to nindy.
1680 * symtab.c: Remove references to nindy.
1681
1682 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1683
1684 * infcmd.c (print_float_info): Delete code conditional on
1685 FLOAT_INFO.
1686 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1687 * config/m68k/nm-apollo68b.h: Ditto.
1688 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1689 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1690 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1691
1692 2003-02-01 Mark Kettenis <kettenis@gnu.org>
1693
1694 * config/i386/tm-i386os9k.h: Removed.
1695
1696 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1697 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1698 they're identical to i[3456]86-*-sysv* now.
1699 * config/i386/i386v32.mh: Removed.
1700 * config/i386/xm-i386v32.h: Removed.
1701 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1702
1703 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1704
1705 * config/i386/i386dgux.mh: Removed.
1706 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1707
1708 * configure.in: Fix typo.
1709 * configure: Regenerated.
1710
1711 2003-01-31 David Carlton <carlton@math.stanford.edu>
1712
1713 * dwarf2read.c (dwarf2_locate_sections): Set
1714 dwarf_ranges_section.
1715
1716 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1717
1718 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1719 * utils.c: Update comments documenting legitimate uses of PTR.
1720
1721 * utils.c: Re-indent.
1722
1723 * config/djgpp/fnchange.lst: Delete nindy files.
1724 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1725 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1726 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1727 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1728 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1729 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1730 * Makefile.in (init.c): Remove nindy references.
1731 (saber_gdb): Delete rule.
1732 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1733 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1734 and a68v-nat.c.
1735 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1736 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1737 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1738 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1739 nindy-share/stop.h.
1740 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1741 * saber.suppress: Delete file.
1742
1743 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
1744
1745 * dbxread.c (stabs_data): New static variable.
1746 (fill_symbuf): Support an in-memory buffer for stabs data.
1747 (stabs_seek): New function.
1748 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1749 (read_ofile_symtab): Use stabs_seek.
1750 (elfstab_build_psymtabs): Take an asection* instead of
1751 an offset and size. Relocate the stabs data if necessary.
1752 Save the section* for dbx_psymtab_to_symtab.
1753 * dwarf2read.c: Add section variables for each debug section.
1754 (dwarf2_locate_sections): Fill them in.
1755 (dwarf2_read_section): Take an asection* argument.
1756 Relocate the section contents if necessary.
1757 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1758 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1759 it to dwarf2_read_section.
1760 (dwarf2_build_frame_info): Update callers.
1761 * elfread.c (elf_symfile_read): Update call to
1762 elfstab_build_psymtabs.
1763 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1764 (DBX_STAB_SECTION): New macro.
1765 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1766 * symfile.c (symfile_dummy_outputs): New function.
1767 (symfile_relocate_debug_section): New function.
1768 * symfile.h (symfile_relocate_debug_section): Add prototype.
1769
1770 2003-01-31 Richard Henderson <rth@redhat.com>
1771
1772 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1773 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1774 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1775 * alpha-tdep.c (alpha_register_name): Add "unique".
1776 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1777 (ALPHA_UNIQUE_REGNUM): New.
1778 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1779
1780 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1781
1782 * README: Remove reference to Ericsson 1800 monitor.
1783 * Makefile.in (remote-es.o): Delete rule.
1784 (ALLDEPFILES): Delete remote-es.c.
1785 * remote-es.c: Delete file.
1786 * config/m68k/es1800.mt: Delete file.
1787 * config/djgpp/fnchange.lst: Update.
1788 * configure.tgt: Delete m68*-ericsson-* target.
1789
1790 2003-01-31 Adam Fedor <fedor@gnu.org>
1791
1792 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1793 Remove duplicate/shadowing variable of same name.
1794
1795 2003-01-30 Jim Blandy <jimb@redhat.com>
1796
1797 * symfile.c (find_separate_debug_file): Assert that the objfile's
1798 directory name we compute ends with a slash, and then assume that
1799 that's so everywhere we use it.
1800
1801 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
1802
1803 * valops.c (value_assign): Flush frame cache after stores to memory
1804 also.
1805
1806 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1807
1808 * Makefile.in (mon960-rom.o): Delete rule.
1809 * mon960-rom.c: Delete file.
1810
1811 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1812
1813 * d10v-tdep.c: Include "frame-unwind.h".
1814 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1815 list.
1816 (next_addr, uses_frame): Delete.
1817 (struct d10v_unwind_cache): Define.
1818 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1819 Use info instead of next_addr and uses_frame globals.
1820 (d10v_frame_init_saved_regs): Delete function.
1821 (d10v_init_extra_frame_info): Delete function.
1822 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1823 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1824 init_frame_pc or frame_saved_pc.
1825 (d10v_pop_frame): Delete function.
1826 (do_d10v_pop_frame): Delete function.
1827 (d10v_frame_chain): Delete function.
1828 (d10v_frame_chain_valid): Delete function.
1829 (d10v_frame_pc_unwind): New function.
1830 (d10v_frame_id_unwind): New function.
1831 (saved_regs_unwinder): New function.
1832 (d10v_frame_register_unwind): New function.
1833 (d10v_frame_pop): New function.
1834 (d10v_frame_unwind): New variable.
1835 (d10v_frame_p): New function.
1836 (d10v_frame_saved_pc): Delete function.
1837 * Makefile.in (d10v-tdep.o): Update dependencies.
1838
1839 2003-01-30 J. Brobecker <brobecker@gnat.com>
1840
1841 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
1842 causing some regressions due to a change in the default value
1843 for this macro.
1844
1845 2003-01-29 Richard Henderson <rth@redhat.com>
1846 Elena Zannoni <ezannoni@redhat.com>
1847 Daniel Jacobowitz <drow@mvista.com>
1848
1849 Fix PR gdb/961.
1850 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
1851 variables.
1852 (RANGES_SECTION): New.
1853 (dwarf_ranges_buffer): New variable.
1854 (struct comp_unit_head): Add member "die".
1855 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
1856 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
1857 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
1858 (dwarf2_locate_sections): Likewise.
1859 (dwarf2_build_psymtabs): Read .debug_ranges.
1860 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
1861 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
1862 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
1863 Look for DW_AT_ranges and return the bounding box.
1864
1865 2003-01-29 Brian Ford <ford@vss.fsi.com>
1866
1867 * win32-nat.c (cygwin_pid): Removed as unused.
1868 (child_attach): Try fall back to Cygwin pid.
1869
1870 2003-01-29 Jim Blandy <jimb@redhat.com>
1871
1872 * objfiles.h (struct objfile): Doc fix.
1873
1874 2003-01-29 Andrew Cagney <ac131313@redhat.com>
1875
1876 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
1877 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
1878 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
1879 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
1880 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
1881 (FRAME_SAVED_PC): Change to a function with predicate.
1882 * gdbarch.h, gdbarch.c: Re-generate.
1883
1884 2003-01-28 Andrew Cagney <ac131313@redhat.com>
1885
1886 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
1887
1888 * complaints.c (complain): Delete function.
1889 * complaints.h (struct deprecated_complaint): Delete definition.
1890 (complain): Delete declaration.
1891
1892 2003-01-28 Kevin Buettner <kevinb@redhat.com>
1893
1894 * mips-tdep.c (mips_init_extra_frame_info): Return early for
1895 dummy frames.
1896
1897 2003-01-27 Andrew Cagney <ac131313@redhat.com>
1898
1899 * sentinel-frame.h, sentinel-frame.c: New files.
1900 * Makefile.in (frame.o): Update dependencies.
1901 (SFILES): Add sentinel-frame.c.
1902 (sentinel_frame_h): Define.
1903 (COMMON_OBS): Add sentinel-frame.o.
1904 (sentinel-frame.o): Specify dependencies.
1905 * frame.c: Include "sentinel-frame.h".
1906 (frame_register_unwind): Rewrite assuming that there is always a a
1907 ->next frame.
1908 (frame_register, generic_unwind_get_saved_register): Ditto.
1909 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
1910 (create_sentinel_frame, unwind_to_current_frame): New functions.
1911 (get_current_frame): Rewrite using create_sentinel_frame and
1912 unwind_to_current_frame. When possible, always create a frame.
1913 (create_new_frame): Set next to the sentinel frame.
1914 (get_next_frame): Rewrite. Don't go below the level 0 frame.
1915 (deprecated_update_frame_pc_hack): Update the next frame's PC and
1916 ID cache when necessary.
1917 (frame_saved_regs_id_unwind): Use frame_relative_level.
1918 (deprecated_generic_get_saved_register): Use frame_relative_level,
1919 get_frame_saved_regs, get_frame_pc, get_frame_base and
1920 get_next_frame.
1921 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
1922 frame_register.
1923
1924 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1925
1926 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
1927
1928 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1929
1930 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
1931 (maintenance_set_profile_cmd): Use error () instead of warning ().
1932
1933 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * configure.in: Check that -pg works if using --enable-profiling.
1936 Check for monstartup and _mcleanup regardless of --enable-profiling.
1937 * maint.c: Check for monstartup and _mcleanup before using them.
1938 * config.in: Regenerated.
1939 * configure: Regenerated.
1940
1941 2003-01-24 Nick Clifton <nickc@redhat.com>
1942
1943 * Add sh2e support:
1944
1945 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
1946
1947 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
1948 (sh2e_show_regs): New.
1949 (sh_gdbarch_init): Handle bfd_mach_sh2e.
1950 * config/sh/tm-sh.h: Added sh2e to comments.
1951
1952 2003-01-23 Jim Blandy <jimb@redhat.com>
1953
1954 * symfile.c (syms_from_objfile): Don't print the "(no debugging
1955 symbols found)" message here; we haven't checked for a separate
1956 debug info file yet, so we don't know yet.
1957 (symbol_file_add_with_addrs_or_offsets): Print it here, after
1958 we've looked everywhere. Also, there's no need to print a special
1959 message when we're loading the separate debug info file: the one
1960 symbol_file_add prints is fine.
1961
1962 2003-01-23 Alexander Larsson <alexl@redhat.com>
1963 Jim Blandy <jimb@redhat.com>
1964
1965 Add support for executables whose debug info has been separated
1966 out into a separate file, leaving only a link behind.
1967 * objfiles.h (struct objfile): New fields: separate_debug_objfile
1968 and separate_debug_objfile_backlink.
1969 (put_objfile_before): New declaration.
1970 * symfile.c: #include "filenames.h".
1971 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
1972 debug info in a separate file, read that, too. Save the addrs
1973 argument, so we can use it again to read the separated debug info;
1974 syms_from_objfile modifies the table we pass it.
1975 (reread_symbols): After re-reading an objfile, call
1976 reread_separate_symbols to refresh its separate debug info
1977 objfile, if it has one.
1978 (reread_separate_symbols, find_separate_debug_file,
1979 get_debug_link_info, separate_debug_file_exists): New functions.
1980 (debug_file_directory): New global var.
1981 (_initialize_symfile): Initialize debug_file_directory, and
1982 provide the new `set debug-file-directory' command to let the user
1983 change it.
1984 * objfiles.c (free_objfile): If this objfile has its debug info in
1985 a separate objfile, free that one too. If this is itself a
1986 separate debug info objfile, clear our parent's backlink.
1987 (put_objfile_before): New function.
1988 * utils.c (gnu_debuglink_crc32): New function.
1989 * defs.h (gnu_debuglink_crc32): New declaration.
1990 * Makefile.in (symfile.o): Note dependency on "filenames.h".
1991 * configure.in: Handle --with-separate-debug-dir config option.
1992 * acinclude.m4 (AC_DEFINE_DIR): New macro.
1993 * acconfig.h (DEBUGDIR): New macro.
1994 * configure, aclocal.m4, config.in: Regenerated.
1995
1996 2003-01-22 Jim Blandy <jimb@redhat.com>
1997
1998 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
1999 like the old symbol_file_add, but taking new arguments: you can
2000 now pass in either a `struct section_addr_info' list to say where
2001 each section is loaded, or a `struct section_offsets' table. Pass
2002 these new arguments through to syms_from_objfile as appropriate.
2003 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2004 with the appropriate quiescent values for the new arguments.
2005
2006 * symfile.c: #include "gdb_assert.h".
2007 (syms_from_objfile): Add the ability to pass in a section offset
2008 table directly, as an alternative to the section_addr_info table.
2009 Document arguments better.
2010 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2011 * symfile.h (syms_from_objfile): Update declaration.
2012 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2013 syms_from_objfile.
2014 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2015
2016 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2017
2018 Original patch by Tom Tromey <tromey@cygnus.com> and
2019 Jason Molenda <jmolenda@apple.com>.
2020 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2021 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2022 * NEWS: Mention profiling.
2023 * configure.in (--enable-gdbtk): Fix typo.
2024 (--enable-profiling): New. Set PROFILE_CFLAGS.
2025 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2026 Fill in function.
2027 (profiling_state): New variable.
2028 (mcleanup_wrapper): New function.
2029 (_initialize_maint): Remove NOTYET, fix call to
2030 add_setshow_boolean_cmd for "maint set profile".
2031 * configure: Regenerated.
2032
2033 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2034
2035 * Makefile.in (install-gdbtk): Install PNG images too.
2036
2037 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2038
2039 * exec.c (text_start): Delete global variable.
2040 (exec_file_attach): Make text_start local to the function.
2041 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2042 * valops.c (hand_function_call): Delete code that handles
2043 BEFORE_TEXT_END and AFTER_TEXT_END.
2044 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2045 of CALL_DUMMY_LOCATION.
2046 * gdbarch.c: Regenerate.
2047 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2048 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2049 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2050 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2051 (text_end): Delete extern declaration.
2052
2053 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2054
2055 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2056 * blockframe.c (backtrace_below_main): Move to "frame.c".
2057 (frame_chain_valid): Delete check for backtrace_below_main.
2058 (_initialize_blockframe): Delete initialization, move ``set
2059 backtrace-below-main'' command to "frame.c".
2060 (do_flush_frames_sfunc): Delete function.
2061 * frame.c: Include "command.h" and "gdbcmd.h".
2062 (frame_type_from_pc): New function.
2063 (create_new_frame): Use frame_type_from_pc.
2064 (legacy_get_prev_frame): New function.
2065 (get_prev_frame): Rewrite. When an old style frame, call
2066 legacy_get_prev_frame. Otherwize, unwind the PC first.
2067 (_initialize_frame): Add ``set backtrace-below-main'' command.
2068 * Makefile.in (frame.o): Update dependencies.
2069
2070 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2071
2072 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2073 DEPRECATED_REGISTERS_INFO.
2074
2075 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2076
2077 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2078 Maintainers'. Update `Various Maintainers'.
2079
2080 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2081
2082 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2083 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2084 Suppress actual parameters when `-'.
2085 * gdbarch.h, gdbarch.c: Regenerate.
2086
2087 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2088
2089 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2090 code handling dummy frames.
2091
2092 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2093
2094 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2095 (struct frame_unwind): Add field pop.
2096 * frame.h (frame_pop): Declare.
2097 * frame.c (frame_saved_regs_pop): New function.
2098 (trad_frame_unwinder): Add frame_saved_regs_pop.
2099 (frame_pop): New function.
2100 * dummy-frame.c (dummy_frame_pop): New function.
2101 (discard_innermost_dummy): New function.
2102 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2103 (dummy_frame_unwind): Add dummy_frame_pop.
2104 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2105 * valops.c (hand_function_call): Ditto.
2106 * stack.c (return_command): Ditto.
2107
2108 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2109
2110 * cris-tdep.c: Fix function declaration indentation.
2111 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2112 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2113 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2114 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2115 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2116 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2117
2118 2003-01-18 Michael Chastain <mec@shout.net>
2119
2120 * README (Unpacking and Installation -- quick overview):
2121 Warn against ".../gdb-5.3/gdb/configure".
2122
2123 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2124
2125 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2126 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2127 (struct frame_unwind): Declare opaque.
2128 (dummy_frame_p): Declare function.
2129 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2130 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2131 * dummy-frame.c: Include "frame-unwind.h".
2132 (dummy_frame_p): New function.
2133 (dummy_frame_unwind): New variable.
2134 * frame.c: Include "frame-unwind.h".
2135 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2136 to use the new unwind field.
2137 (set_unwind_by_pc): Delete function.
2138 (create_new_frame, get_prev_frame): Set unwind field using
2139 frame_unwind_find_by_pc.
2140 (trad_frame_unwind, trad_frame_unwinder): New variables.
2141 * frame.h (trad_frame_unwind): Declare variable.
2142 (frame_id_unwind_ftype): Delete declaration.
2143 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2144 (struct frame_unwind): Declare opaque.
2145 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2146 register_unwind with a single unwind pointer.
2147 * frame-unwind.h, frame-unwind.c: New files.
2148 * Makefile.in (SFILES): Add frame-unwind.c.
2149 (frame_unwind_h): Define.
2150 (COMMON_OBS): Add frame-unwind.o.
2151 (frame-unwind.o): Specify dependencies.
2152 (frame.o, dummy-frame.o): Update dependencies.
2153
2154 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2155
2156 * ada-valprint.c: Eliminate PTR.
2157 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2158 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2159 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2160 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2161 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2162 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2163 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2164
2165 2003-01-17 Andrew Cagney <ac131313@redhat.com>
2166
2167 * main.c (captured_main): Don't use PTR.
2168 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2169 * gdbtypes.c (lookup_primitive_typename): Ditto.
2170 (lookup_struct_elt_type): Ditto.
2171 * f-valprint.c (info_common_command): Ditto.
2172 (list_all_visible_commons): Ditto.
2173 * jv-typeprint.c (java_type_print_base): Ditto.
2174
2175 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2176 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2177 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2178 i386-interix-nat.c and i386-interix-tdep.c. Rename
2179 m68klinux-nat.c and m68klinux-tdep.c. Rename
2180 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2181 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2182 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2183 * main.c (captured_main): Use xfree, not free.
2184
2185 2003-01-16 Andrew Cagney <ac131313@redhat.com>
2186
2187 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2188 ID back using a parameter.
2189 * frame.c (frame_id_unwind): Update call.
2190 (frame_saved_regs_id_unwind): Update.
2191 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2192 * dummy-frame.h (struct frame_id): Add opaque declaration.
2193 (dummy_frame_id_unwind): Update declaration.
2194
2195 2003-01-15 Andrew Cagney <ac131313@redhat.com>
2196
2197 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2198
2199 2003-01-15 Stephen P. Smith <ischis2@cox.net>
2200
2201 * MAINTAINERS (Stephen P. Smith): Updated email address.
2202
2203 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
2204
2205 Fix PR gdb/898
2206 * breakpoint.c (until_break_command): Add new argument. Use it to
2207 decide whether to stop only at the current frame or not.
2208 * breakpoint.h (until_break_command): Update prototype.
2209 * infcmd.c (until_command): Add new argument to until_break_command
2210 call.
2211 (advance_command): New function.
2212 (_initialize_infcmd): Update help string for 'until' command.
2213 Add new 'advance' command.
2214
2215 2003-01-14 David Carlton <carlton@math.stanford.edu>
2216
2217 * linespec.c (decode_line_1): Normalize comments.
2218 (set_flags): Ditto.
2219 (locate_first_half): Ditto.
2220 (decode_compound): Ditto.
2221 (symtab_from_filename): Ditto.
2222 (decode_all_digits): Ditto.
2223 (decode_dollar): Ditto.
2224 (find_methods): Ditto.
2225 (find_toplevel_char): Ditto.
2226
2227 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2228
2229 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2230 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2231 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2232 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2233 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2234 * language.c, language.h, m32r-tdep.c: Update copyright.
2235 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2236 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2237 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2238 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2239 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2240 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2241
2242 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2243
2244 * stabsread.h (process_later, resolve_cfront_continuation):
2245 Obsolete.
2246 Update copyright years.
2247 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2248 Update copyright year.
2249 * dbxread.c(struct cont_elem): Obsolete.
2250 (process_later, process_now): Obsolete functions.
2251 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2252 Update copyright year.
2253 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2254 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2255 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2256 (parse_partial_symbols): Obsolete cfront support.
2257 * stabsread.c
2258 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2259 macros.
2260 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2261 read_cfront_baseclasses, read_cfront_member_functions,
2262 resolve_cfront_continuation,read_cfront_static_fields,
2263 copy_cfront_struct_fields): Obsolete functions.
2264 (define_symbol, read_one_struct_field): Obsolete cfront support.
2265 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2266 Update Copyright year.
2267
2268 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2269
2270 * stack.c (print_frame_info, print_stack_frame_base_stub,
2271 print_stack_frame_base, show_and_print_stack_frame_stub,
2272 show_and_print_stack_frame, print_only_stack_frame_stub,
2273 print_only_stack_frame): Delete functions.
2274 (print_stack_frame_stub): Call print_frame_info instead of
2275 print_frame_info_base.
2276 (print_frame_info_base): Rename to print_frame_info.
2277 (backtrace_command_1): Call print_frame_info, instead of
2278 print_frame_info_base.
2279 (current_frame_command): Call print_stack_frame, instead of
2280 print_only_stack_frame.
2281 (frame_command): Call print_stack_frame, instead of
2282 show_and_print_stack_frame.
2283 (up_command): Ditto.
2284 (down_command): Ditto.
2285 * frame.h (print_only_stack_frame): Delete prototype.
2286 * infrun.c (normal_stop): Call print_stack_frame, instead of
2287 show_and_print_stack_frame.
2288 * thread.c (info_threads_command): Call print_stack_frame, instead
2289 of print_only_stack_frame.
2290
2291 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2292
2293 * README (Graphical interface to GDB): Update URL. Point at
2294 gdb/links/.
2295
2296 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2297 version match.
2298
2299 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2300
2301 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2302 lines.
2303
2304 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * thread-db.c (attach_thread): Prototype.
2307 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2308 thread information (ti), and valid flags (th_valid, ti_valid).
2309 (attach_thread): Move target_pid_to_str call to after the thread
2310 is added to GDB's list. Initialize the cache.
2311 (thread_get_info_callback, thread_db_map_id2thr)
2312 (thread_db_get_info): New functions.
2313 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2314 (thread_db_store_registers, thread_db_thread_alive)
2315 (thread_db_get_thread_local_address): Use them.
2316 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2317 of calling error() for threads in unknown state.
2318
2319 (clear_lwpid_callback): New function.
2320 (thread_db_resume): Use it to clear the cache.
2321
2322 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2323
2324 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2325 (resume_callback): Remove dead code.
2326
2327 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2328
2329 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2330 predicate.
2331 * gdbarch.h, gdbarch.c: Regenerate.
2332 * stack.c (frame_info): Only initialize the saved registers when
2333 FRAME_INIT_SAVED_REGS_P.
2334 * frame.c (frame_saved_regs_register_unwind): Assert
2335 FRAME_INIT_SAVED_REGS_P.
2336 (deprecated_generic_get_saved_register): Ditto.
2337
2338 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2339
2340 * source.c (openp): Squelch warning about "filename".
2341
2342 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2343
2344 * source.c (openp): If the file does not exist don't necessarily
2345 search the path.
2346
2347 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2348
2349 Fix PR gdb/872.
2350 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2351 (integer_types_same_name_p): New function.
2352 (rank_one_type): Use it.
2353 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2354
2355 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2356
2357 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2358 variables.
2359 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2360 * configure.in: Add --with-sysroot.
2361 * configure: Regenerated.
2362 * main.c (gdb_sysroot): New variable.
2363 (captured_main): Initialize gdb_sysroot.
2364 * defs.h (gdb_sysroot): New extern declaration.
2365 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2366
2367 2003-01-12 Michael Chastain <mec@shout.net>
2368
2369 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2370
2371 2003-01-12 Michael Chastain <mec@shout.net>
2372
2373 * top.c (print_gdb_version): Bump copyright year to 2003.
2374
2375 2003-01-12 David Carlton <carlton@bactrian.org>
2376
2377 * linespec.c (symtab_from_filename): Rename variable 's' to
2378 'file_symtab'.
2379
2380 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2381
2382 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2383 dummy frame.
2384 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2385
2386 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2387
2388 * d10v-tdep.c: Include "gdb_assert.h".
2389 (d10v_store_return_value): Rewrite to match current interface.
2390 (d10v_extract_struct_value_address): Ditto.
2391 (d10v_extract_return_value): Ditto.
2392 (d10v_gdbarch_init): Set store_restore_value,
2393 extract_struct_value_address and extract_return_value.
2394
2395 2003-01-12 J. Brobecker <brobecker@gnat.com>
2396
2397 * hpread.c (set_namestring): New procedure replacing the
2398 SET_NAMESTRING macro.
2399 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2400 by calls to set_namestring.
2401
2402 2003-01-11 J. Brobecker <brobecker@gnat.com>
2403
2404 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2405 a compilation warning.
2406 (hpread_process_one_debug_symbol): Likewise.
2407
2408 2003-01-10 David Carlton <carlton@math.stanford.edu>
2409
2410 * linespec.c (decode_line_1): Rename variable 's' to
2411 'file_symtab'.
2412 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2413 (decode_dollar): Ditto.
2414 (decode_variable): Ditto.
2415 (symbol_found): Ditto.
2416
2417 2003-01-09 Michael Chastain <mec@shout.net>
2418
2419 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2420
2421 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
2422
2423 * win32-nat.c (set_process_privilege): New function.
2424 (child_attach): Call set_process_privilege() to enable the
2425 SE_DEBUG_NAME user privilege if available in process token.
2426
2427 2003-01-10 J. Brobecker <brobecker@gnat.com>
2428
2429 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2430 compilation error in the previous revision.
2431
2432 2003-01-09 David Carlton <carlton@math.stanford.edu>
2433
2434 * linespec.c: Update copyright.
2435
2436 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2437
2438 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2439 than inferior_ptid.
2440 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2441
2442 2003-01-09 Andrew Cagney <ac131313@redhat.com>
2443
2444 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2445 Update comments.
2446 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2447 (frame_saved_regs_zalloc): Update.
2448 (frame_saved_regs_register_unwind): Update.
2449 (create_new_frame): Update.
2450 (get_prev_frame): Update.
2451 (frame_extra_info_zalloc): Update.
2452 (deprecated_get_frame_saved_regs): Update.
2453 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2454 * cris-tdep.c: Update comment.
2455
2456 * somsolib.h: Fix function indentation.
2457 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2458 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2459 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2460 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2461 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2462
2463 * infrun.c (follow_fork): Use ISO C definition.
2464 * expprint.c (print_subexp): Use xfree instead of free.
2465 * charset.c: Include "gdb_string.h" instead of <string.h>.
2466 (register_iconv_charsets): Use ISO C definition.
2467 (host_charset, target_charset): Ditto.
2468 * Makefile.in (charset.o): Update dependencies.
2469 (mi-cmd-env.o): Update dependencies.
2470
2471 2003-01-08 Andrew Cagney <cagney@redhat.com>
2472
2473 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2474 get_frame_base.
2475
2476 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2477
2478 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2479 build directories. Save edited gdb output in Mbuild.log. If a
2480 build fails, remove any final GDB executable.
2481
2482 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2483
2484 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2485 replacing hex constants with function names and stripping leading
2486 file name directory prefixes.
2487
2488 2003-01-08 Andrew Cagney <cagney@redhat.com>
2489
2490 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2491 get_frame_base.
2492
2493 2003-01-08 David Carlton <carlton@math.stanford.edu>
2494
2495 * linespec.c (decode_line_1): Move code into decode_variable.
2496 (decode_variable): New function.
2497
2498 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2499
2500 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2501
2502 2003-01-08 Andrew Cagney <cagney@redhat.com>
2503
2504 * cris-tdep.c (cris_frame_init_saved_regs): Use
2505 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2506 saved_regs buffer.
2507 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2508 (sh64_nofp_frame_init_saved_regs): Ditto.
2509 (sh_fp_frame_init_saved_regs): Ditto.
2510 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2511 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2512 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2513 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2514
2515 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
2516
2517 * minsyms.c (lookup_minimal_symbol): Update comment.
2518 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2519 (lookup_minimal_symbol_solib_trampoline): Likewise.
2520
2521 2003-01-08 Andrew Cagney <cagney@redhat.com>
2522
2523 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2524 frame_relative_level.
2525
2526 * alpha-tdep.c: Use get_frame_extra_info.
2527 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2528 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2529 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2530 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2531
2532 * alpha-tdep.c: Use get_next_frame.
2533 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2534 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2535 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2536 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2537 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2538 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2539 * xstormy16-tdep.c: Ditto.
2540
2541 2003-01-07 Andrew Cagney <cagney@redhat.com>
2542
2543 * alpha-tdep.c: Use get_frame_base.
2544 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2545 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2546 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2547 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2548 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2549 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2550 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2551 * config/sparc/tm-sparc.h: Ditto.
2552
2553 2003-01-07 Andrew Cagney <cagney@redhat.com>
2554
2555 * frame.c (deprecated_get_frame_context): New function.
2556 (deprecated_set_frame_context): New function.
2557 * frame.h (deprecated_get_frame_context): Declare.
2558 (deprecated_set_frame_context): Declare.
2559 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2560 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2561
2562 2003-01-07 Andrew Cagney <cagney@redhat.com>
2563
2564 * frame.c (deprecated_set_frame_next_hack): New function.
2565 (deprecated_set_frame_prev_hack): New function.
2566 * frame.h (deprecated_set_frame_next_hack): Declare.
2567 (deprecated_set_frame_prev_hack): Declare.
2568 * mcore-tdep.c (analyze_dummy_frame): Use
2569 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2570 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2571
2572 2003-01-07 David Carlton <carlton@math.stanford.edu>
2573
2574 * linespec.c (decode_line_1): Move code into decode_dollar.
2575 (decode_dollar): New function.
2576
2577 2003-01-07 Andrew Cagney <cagney@redhat.com>
2578
2579 * arm-tdep.c (arm_init_extra_frame_info): Use
2580 deprecated_update_frame_base_hack.
2581 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2582 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2583 (fix_frame_pointer): Ditto.
2584 (mn10300_analyze_prologue): Ditto.
2585
2586 2003-01-07 Andrew Cagney <cagney@redhat.com>
2587
2588 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2589 extra_info using frame_extra_info_zalloc.
2590 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2591 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2592 (sh64_init_extra_frame_info): Ditto.
2593 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2594 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2595 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2596 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2597 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2598 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2599 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2600 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2601 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2602 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2603 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2604 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2605
2606 * mn10300-tdep.c (analyze_dummy_frame): Use
2607 deprecated_set_frame_extra_info_hack.
2608 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2609
2610 2003-01-07 J. Brobecker <brobecker@gnat.com>
2611
2612 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2613 class is not scText. These do not define "real" procedures.
2614 (parse_partial_symbols): Likewise.
2615
2616 2003-01-06 Michael Snyder <msnyder@redhat.com>
2617
2618 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2619
2620 2003-01-06 Andrew Cagney <ac131313@redhat.com>
2621
2622 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2623 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2624 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2625 deprecated_frame_xmalloc_with_cleanup.
2626 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2627 deprecated_frame_xmalloc.
2628 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2629 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2630
2631 2003-01-06 Andrew Cagney <cagney@redhat.com>
2632
2633 * x86-64-linux-tdep.c: Include "osabi.h".
2634 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2635
2636 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2637
2638 2003-01-06 Andrew Cagney <cagney@redhat.com>
2639
2640 * MAINTAINERS (Target Instruction Set Architectures): Update
2641 arm-elf. Can be built with -Werror, has been multiarched.
2642
2643 * value.h (unpack_long): Make buffer parameter constant.
2644 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2645 * scm-lang.h (scm_parse): Ditto.
2646 * defs.h (extract_typed_address, extract_address): Ditto.
2647 (extract_long_unsigned_integer): Ditto.
2648 * inferior.h (unsigned_pointer_to_address): Ditto.
2649 (signed_pointer_to_address): Ditto.
2650 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2651 * gdbarch.h, gdbarch.c: Regenerate.
2652 * findvar.c (extract_long_unsigned_integer): Update.
2653 (extract_address): Update.
2654 (extract_typed_address): Update.
2655 (unsigned_pointer_to_address): Update.
2656 * values.c (unpack_long): Update.
2657 (unpack_double): Update.
2658 (unpack_pointer): Update.
2659 (unpack_field_as_long): Update.
2660 * d10v-tdep.c (d10v_pointer_to_address): Update.
2661 * avr-tdep.c (avr_pointer_to_address): Update.
2662 * scm-lang.c (scm_unpack): Update.
2663 * findvar.c (signed_pointer_to_address): Update.
2664
2665 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2666
2667 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2668 since it is in i386-tdep.c.
2669
2670 2003-01-06 J. Brobecker <brobecker@gnat.com>
2671
2672 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2673 failure introduced in the previous change.
2674
2675 2003-01-05 Michael Chastain <mec@shout.net>
2676
2677 * README: Remove references to deleted remote-*.c files:
2678 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2679 remote-nrom.c, remote-os9k.c, remote-udi.c.
2680
2681 2003-01-05 Mark Kettenis <kettenis@gnu.org>
2682
2683 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2684 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2685 i386_get_longjmp_target.
2686
2687 2003-01-05 Andrew Cagney <ac131313@redhat.com>
2688
2689 * arm-tdep.c (prologue_cache): Change to a pointer.
2690 (_initialize_arm_tdep): Allocate prologue_cache.
2691 (check_prologue_cache): Update.
2692 (save_prologue_cache): Update.
2693 (arm_gdbarch_init): Update.
2694
2695 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2696
2697 * stabsread.c (update_method_name_from_physname): Call complaint()
2698 instead of error.
2699
2700 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2701
2702 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2703 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2704 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2705
2706 * blockframe.c: Include "gdbcmd.h" and "command.h".
2707 (backtrace_below_main): New variable.
2708 (file_frame_chain_valid, func_frame_chain_valid)
2709 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2710 (generic_func_frame_chain_valid): Remove functions.
2711 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2712 (_initialize_blockframe): New function.
2713 * Makefile.in (blockframe.o): Update dependencies.
2714 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2715 comment. Call frame_chain_valid ().
2716 * frame.h: Remove old prototypes. Add prototype for
2717 frame_chain_valid and update comments to match.
2718 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2719 Remove old comment.
2720 * gdbarch.h: Regenerated.
2721 * gdbarch.c: Regenerated.
2722
2723 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2724 set_gdbarch_frame_chain_valid.
2725 * avr-tdep.c (avr_gdbarch_init): Likewise.
2726 * cris-tdep.c (cris_gdbarch_init): Likewise.
2727 * frv-tdep.c (frv_gdbarch_init): Likewise.
2728 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2729 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2730 (i386_nw_init_abi): Likewise.
2731 (i386_gdbarch_init): Likewise.
2732 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2734 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2735 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2736 * mips-tdep.c (mips_gdbarch_init): Likewise.
2737 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2738 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2739 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2740 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2741 * s390-tdep.c (s390_gdbarch_init): Likewise.
2742 * sh-tdep.c (sh_gdbarch_init): Likewise.
2743 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2744 * v850-tdep.c (v850_gdbarch_init): Likewise.
2745 * vax-tdep.c (vax_gdbarch_init): Likewise.
2746 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2747
2748 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2749 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2750 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2751 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2752 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2753 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2754 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2755 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2756
2757 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2758
2759 * Makefile.in (acconfig_h): Remove incorrect macro.
2760 (config_h): Define.
2761 (osabi.o): Update dependencies.
2762 * configure.tgt: Set gdb_osabi based on target triplet.
2763 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2764 * configure: Regenerated.
2765 * config.in: Regenerated.
2766 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2767 (GDB_OSABI_DEFAULT): Define if not already defined.
2768 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2769 (set_osabi_string): New variables.
2770 (gdbarch_register_osabi): Add new OS ABI to
2771 gdb_osabi_available_names.
2772 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2773 (set_osabi, show_osabi): New functions.
2774 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2775
2776 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2777
2778 * arch-utils.c (gdbarch_info_init): Set osabi to
2779 GDB_OSABI_UNINITIALIZED.
2780 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2781 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2782 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2783 * gdbarch.c: Regenerated.
2784 * gdbarch.h: Regenerated.
2785 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2786 there's no BFD.
2787 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2788 * osabi.h (enum gdb_osabi): Move to defs.h.
2789 (gdbarch_init_osabi): Update prototype.
2790 * defs.h (enum gdb_osabi): Moved here.
2791 * Makefile.in: Update dependencies.
2792
2793 * alpha-tdep.h: Don't include "osabi.h".
2794 (struct gdbarch_tdep): Remove osabi member.
2795 * alpha-tdep.c: Include "osabi.h".
2796 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2797 iterate over arches. Update call to gdbarch_init_osabi.
2798 (alpha_dump_tdep): Don't dump osabi.
2799 * alpha-linux-tdep.c: Include "osabi.h".
2800 * alpha-osf1-tdep.c: Include "osabi.h".
2801 * alphafbsd-tdep.c: Include "osabi.h".
2802 * alphanbsd-tdep.c: Include "osabi.h".
2803
2804 * arm-tdep.h: Don't include "osabi.h".
2805 (struct gdbarch_tdep): Remove osabi member.
2806 * arm-tdep.c: Include "osabi.h".
2807 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2808 iterate over arches. Update call to gdbarch_init_osabi.
2809 (arm_dump_tdep): Don't dump osabi.
2810 * arm-linux-tdep.c: Include "osabi.h".
2811 * armnbsd-tdep.c: Include "osabi.h".
2812
2813 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2814 Update call to gdbarch_init_osabi.
2815
2816 * i386-tdep.h: Don't include "osabi.h".
2817 (struct gdbarch_tdep): Remove osabi member.
2818 * i386-tdep.c: Include "osabi.h".
2819 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2820 iterate over arches. Update call to gdbarch_init_osabi.
2821 (i386_dump_tdep): Don't dump osabi.
2822 * i386-linux-tdep.c: Include "osabi.h".
2823 * i386-sol2-tdep.c: Include "osabi.h".
2824 * i386bsd-tdep.c: Include "osabi.h".
2825 * i386gnu-tdep.c: Include "osabi.h".
2826 * i386ly-tdep.c: Include "osabi.h".
2827 * i386nbsd-tdep.c: Include "osabi.h".
2828 * i386obsd-tdep.c: Include "osabi.h".
2829
2830 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
2831 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2832 check osabi when iterating over arches. Update call to
2833 gdbarch_init_osabi.
2834 (mips_dump_tdep): Don't dump osabi.
2835
2836 * ns32k-tdep.h: Don't include "osabi.h".
2837 (struct gdbarch_tdep): Remove.
2838 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
2839 gdbarch_lookup_osabi. Don't iterate over arches. Don't
2840 allocate tdep. Update call to gdbarch_init_osabi.
2841 (ns32k_dump_tdep): Remove.
2842 (_initialize_ns32k_tdep): Update call to gdbarch_register.
2843 * ns32knbsd-tdep.c: Include "osabi.h".
2844
2845 * ppc-tdep.h: Don't include "osabi.h".
2846 (struct gdbarch_tdep): Remove osabi member.
2847 * rs6000-tdep.c: Include "osabi.h".
2848 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
2849 osabi when iterating over arches. Update call to
2850 gdbarch_init_osabi.
2851 (rs6000_dump_tdep): Don't dump osabi.
2852 * ppc-linux-tdep.c: Include "osabi.h".
2853 * ppcnbsd-tdep.c: Include "osabi.h".
2854
2855 * sh-tdep.h: Don't include "osabi.h".
2856 (struct gdbarch_tdep): Remove osabi member.
2857 * sh-tdep.c: Include "osabi.h".
2858 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2859 iterate over arches. Update call to gdbarch_init_osabi.
2860 (sh_dump_tdep): Don't dump osabi.
2861 * shnbsd-tdep.c: Include "osabi.h".
2862
2863 * sparc-tdep.c: Include "osabi.h".
2864 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2865 iterate over arches. Update call to gdbarch_init_osabi.
2866 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
2867 tdep structure.
2868
2869 * vax-tdep.h: Don't include "osabi.h".
2870 (struct gdbarch_tdep): Remove.
2871 * vax-tdep.c: Include "osabi.h".
2872 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2873 iterate over arches. Don't allocate tdep. Update call
2874 to gdbarch_init_osabi.
2875 (vax_dump_tdep): Remove.
2876 (_initialize_vax_tdep): Update call to gdbarch_register.
2877
2878 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
2881 entirely.
2882 (breakpoint_re_set_one): Don't fetch the value for a disabled
2883 watchpoint.
2884
2885 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2886
2887 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
2888 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
2889 (COERCE_FLOAT_TO_DOUBLE): Remove.
2890 * gdbarch.c: Regenerate.
2891 * gdbarch.h: Regenerate.
2892 * Makefile.in: Remove value_h from gdbarch_h.
2893 * valops.c (coerce_float_to_double): New variable.
2894 (default_coerce_float_to_double): Remove.
2895 (standard_coerce_float_to_double): Remove.
2896 (value_arg_coerce): Use coerce_float_to_double.
2897 (_initialize_valops): Add "set coerce-float-to-double".
2898 * value.h (default_coerce_float_to_double): Remove prototype.
2899 (standard_coerce_float_to_double): Remove prototype.
2900
2901 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
2902 prototyped.
2903 * mdebugread.c (parse_symbol): Likewise.
2904 * stabsread.c (define_symbol): Mark all functions as prototyped.
2905
2906 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
2907 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
2908 set_gdbarch_coerce_float_to_double.
2909 * arm-tdep.c (arm_gdbarch_init): Likewise.
2910 * frv-tdep.c (frv_gdbarch_init): Likewise.
2911 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
2912 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2913 * mips-tdep.c (mips_gdbarch_init): Likewise.
2914 (mips_coerce_float_to_double): Remove.
2915 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2916 (rs6000_coerce_float_to_double): Remove.
2917 * s390-tdep.c (s390_gdbarch_init): Likewise.
2918 * sh-tdep.c (sh_gdbarch_init): Likewise.
2919 (sh_coerce_float_to_double): Remove.
2920 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2921 (sparc_coerce_float_to_double): Remove.
2922 * v850-tdep.c (v850_gdbarch_init): Likewise.
2923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2924 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2925 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
2926 (hppa_coerce_float_to_double): Remove prototype.
2927 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2928
2929 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2930
2931 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
2932
2933 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2934
2935 Suggested by Stewart Brown <sb24@avaya.com>:
2936 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
2937 in recursive calls. Handle TYPE_CODE_TYPEDEF.
2938 (c_type_print_varspec_suffix): Likewise.
2939
2940 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2941
2942 * configure.in: Don't set and AC_SUBST SUBDIRS.
2943 * configure: Regenerated.
2944
2945 * configure.in: Remove code dealing with shared libraries.
2946 * Makefile.in: Remove HLDFLAGS and HLDENV.
2947 * configure: Regenerated.
2948
2949 2003-01-04 Andrew Cagney <ac131313@redhat.com>
2950
2951 * frame.c (deprecated_frame_xmalloc): New function.
2952 (deprecated_set_frame_saved_regs_hack): New function.
2953 (deprecated_set_frame_extra_info_hack): New function.
2954 * frame.h (deprecated_frame_xmalloc): Declare.
2955 (deprecated_set_frame_saved_regs_hack): Declare.
2956 (deprecated_set_frame_extra_info_hack): Declare.
2957
2958 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2959
2960 * configure.in: Move code that provides the --enable-gdbtk option
2961 right after the code that handles the --enable-tui option, and
2962 polish it somewhat.
2963 * configure: Regenerated.
2964
2965 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
2966 AC_CHECK_FUNCS and remove the old check for pread64.
2967 * acinclude.m4 (AC_GNU_SOURCE): New macro.
2968 * acconfig.h (_GNU_SOURCE): Add.
2969 (HAVE_PREAD64): Remove.
2970 * configure, aclocal.m4, config.in: Regenerated.
2971
2972 2003-01-03 Andrew Cagney <ac131313@redhat.com>
2973
2974 * alpha-tdep.c: Use get_frame_saved_regs.
2975 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2976 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2977 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
2978 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
2979 * vax-tdep.c, xstormy16-tdep.c: Ditto.
2980
2981 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2982
2983 * configure.in: Remove all use of the SUBDIRS variable; add
2984 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
2985 code providing the --enable-multi-ice option, and move it right in
2986 front of the code that checks whether gdbserver is supported.
2987 Polish that too.
2988 * configure: Regenerated.
2989 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
2990 @SUBDIRS@.
2991
2992 2003-01-03 Andrew Cagney <cagney@redhat.com>
2993
2994 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
2995 * avr-tdep.c, cris-tdep.c: Ditto.
2996 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2997 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2998
2999 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3000
3001 * configure.in: Remove --enable-netrom option.
3002 * configure: Regenerated.
3003
3004 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3005
3006 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3007 declaration for `struct re_pattern_buffer' instead.
3008 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3009
3010 2003-01-03 J. Brobecker <brobecker@gnat.com>
3011
3012 * mdebugread.c (parse_symbol): Count until the stEnd matching
3013 the structure name.
3014
3015 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3016
3017 * configure.in: Remove --with-cpu option.
3018 subscripts. Remove evil changequotes here.
3019 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3020 * config.in, configure: Regenerated.
3021
3022 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3023 * configure.in: Cleanup section that sources GDB and BFD configure
3024 subscripts. Remove evil changequotes here.
3025 * config.in, configure: Regenerated.
3026
3027 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3028
3029 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3030 frame accessor methods.
3031 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3032 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3033 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3034 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3035 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3036 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3037 * z8k-tdep.c: Ditto.
3038
3039 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3040
3041 * configure.in: Remove UI_OUT configuration code.
3042 * ada-lang.c: Update assuming UI_OUT is always true.
3043 * Makefile.in (UIOUT_CFLAGS): Remove.
3044 * configure: Regenerated.
3045 * TODO: Remove blurb about elimination of -DUI_OUT.
3046
3047 * configure.in: Move code that provides the --enable-gdbcli,
3048 --enable-gdbmi options right before the code that handles the
3049 --enable-tui option. Polish a bit.
3050 * configure: Regenerated.
3051
3052 * configure.in: Rewrite check for GNU regex and the
3053 --without-included regex option, and move it into the "Checks for
3054 library functions" section. This makes us use the system regex
3055 again by default on systems with version 2 of the GNU C library.
3056 This was apparently broken.
3057 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3058 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3059 * config.in, configure: Regenerated.
3060
3061 * configure.in: Move code that provides the --enable-tui option
3062 before the "Checks for libraries" section. Polish the code
3063 somewhat and set need_curses to yes if we build the TUI. Rewrite
3064 code that looks for a library providing termcap functionality to
3065 match more closely what's done in the Readline library, and move
3066 it into to the "Checks for libraries" section.
3067 * configure: Regenerated.
3068 * Makefile.in (TERMCAP): Remove variable.
3069 * config/i386/go32.mh (TERMCAP): Remove variable.
3070
3071 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3072
3073 * MAINTAINERS: Mention gdb_mbuild.sh.
3074 * gdb_mbuild.sh: Rewrite.
3075
3076 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3077
3078 * configure.in: Fix typo in last change.
3079 * config.in, configure: Regenerated.
3080
3081 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3082
3083 * valarith.c (value_binop): Delete obsolete code and comments.
3084 * configure.host: Ditto.
3085 * buildsym.h (make_blockvector): Ditto.
3086 * buildsym.c (make_blockvector): Ditto.
3087 * defs.h (enum language): Ditto.
3088 (chill_demangle): Ditto.
3089 * elfread.c (elf_symtab_read): Ditto.
3090 * dwarfread.c (CHILL_PRODUCER): Ditto.
3091 (set_cu_language): Ditto.
3092 (handle_producer): Ditto.
3093 * expprint.c (print_subexp): Ditto.
3094 * gdbtypes.c (chill_varying_type): Ditto.
3095 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3096 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3097 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3098 (chill_varying_type): Ditto.
3099 * language.h (_LANG_chill): Ditto.
3100 * language.c (binop_result_type, integral_type): Ditto.
3101 (character_type, string_type, structured_type): Ditto.
3102 (lang_bool_type, binop_type_check): Ditto.
3103 * stabsread.h (os9k_stabs): Ditto.
3104 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3105 (define_symbol, read_type, read_struct_fields): Ditto.
3106 (read_array_type, read_enum_type, read_huge_number): Ditto.
3107 (read_range_type, start_stabs): Ditto.
3108 * symfile.c (init_filename_language_table): Ditto.
3109 (add_psymbol_with_dem_name_to_list): Ditto.
3110 * symtab.c (symbol_init_language_specific): Ditto.
3111 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3112 * symtab.h (struct general_symbol_info): Ditto.
3113 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3114 * typeprint.c (typedef_print): Ditto.
3115 * utils.c (fprintf_symbol_filtered): Ditto.
3116 * valops.c (value_cast, search_struct_field, value_slice): Delete
3117 obsolete code.
3118 (varying_to_slice): Delete function.
3119 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3120 (varying_to_slice): Delete declaration.
3121 * MAINTAINERS: Update.
3122
3123 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3124
3125 * configure.in: Reorganize "Checks for library functions section"
3126 a bit. Remove check for `btowc' and `isascii' functions.
3127 * configure: Regenerated.
3128
3129 * acconfig.h (_MSE_INT_H): Remove.
3130 * configure.in: Create "Checks for header files" section, and move
3131 appropriate tests there. Don't check for objlist.h, wchar.h,
3132 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3133 misdetection fix. Also add "Checks for types", "Checks for
3134 compiler characteristics" and "Checks for library functions"
3135 sections.
3136 * config.in, configure: Regenerated.
3137
3138 * configure.in: Create "Checks for programs" section, and move
3139 appropriate tests there.
3140
3141 2003-01-01 Mark Kettenis <kettenis@gnu.org>
3142
3143 * configure.in: Create "Checks for libraries" section, and move
3144 appropriate tests there. Cleanup check for wctype in libw. Use
3145 AC_SEARCH_LIBS to see whether we need libsocket.
3146 * configure: Regenerated.
3147
3148 For older changes see ChangeLog-2002
3149 \f
3150 Local Variables:
3151 mode: change-log
3152 left-margin: 8
3153 fill-column: 74
3154 version-control: never
3155 End:
This page took 0.095961 seconds and 4 git commands to generate.