Pass stderr of program run with "target remote |"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
65cc4390
VP
12007-04-08 Vladimir Prus <vladimir@codesourcery.com>
2
3 Pass stderr of program run with "target remote |"
4 via gdb_stderr.
5 * serial.c (serial_open): Set error_fd to -1.
6 * serial.h (struct serial): New field error_fd.
7 (struct serial_opts): New field avail.
8 * ser-pipe.c (pipe_open): Create another pair
9 of sockets. Pass stderr to gdb.
10 * ser-mingw.c (pipe_windows_open): Pass
11 PEX_STDERR_TO_PIPE to pex_run. Initialize
12 sd->error_fd.
13 (pipe_avail): New.
14 (_initialize_ser_windows): Hook pipe_avail.
15 * ser-base.c (generic_readchar): Check if there's
16 anything in stderr channel and route that to gdb_stderr.
17
e9112110
PA
182007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
19
20 * dbxread.c (read_ofile_symtab): Move current_objfile
21 clearing to after end_stabs.
22
7f68ac27
AS
232007-04-01 Andreas Schwab <schwab@suse.de>
24
25 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
26 gdbarch instead of current_gdbarch.
27
e55dccf0
VP
282007-04-01 Vladimir Prus <vladimir@codesourcery.com>
29
30 * varobj.c (varobj_create): Keep varobj value
31 NULL when evaluating the type.
32
7c963485
PA
332007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
34
35 * NEWS: Mention new Windows CE support.
36
ad527d2e
PA
372007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
38
39 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
40 the obsoletion stanza.
41 * NEWS: Mention deleted targets.
42
43 * config/sh/tm-wince.h: Remove.
44 * config/sh/wince.mt: Remove.
45 * config/mips/tm-wince.h: Remove.
46 * config/mips/wince.mt: Remove.
47
48 * wince.c: Remove.
49 * wince-stub.c: Remove.
50 * wince-stub.h: Remove.
51 * Makefile.in (wince.o): Remove rule.
52 (wince-stub.o): Likewise.
53
54 * mips-tdep.c (mips_next_pc): Make static.
55 * mips-tdep.h (mips_next_pc): Remove declaration.
56 * arm-tdep.c (arm_pc_is_thumb): Make static.
57 (thumb_get_next_pc): Likewise.
58 (arm_get_next_pc): Likewise.
59 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
60 (arm_pc_is_thumb): Likewise.
61 (thumb_get_next_pc): Likewise.
62 (arm_get_next_pc): Likewise.
63
7ce59000
DJ
642007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
65
66 * MAINTAINERS: Remove d10v entry.
67 * Makefile.in (SFILES): Remove dwarfread.c.
68 (COMMON_OBS): Remove dwarfread.o.
69 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
70 (remote-est.o, rom68k-rom.o): Delete.
71 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
72 target est, target rom68k, and DWARF 1.
73 * configure.tgt: Mark d10v as removed.
74 * dwarf2read.c: Doc update.
75 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
76 and lnsize.
77 (elf_locate_sections): Do not set them.
78 (elf_symfile_read): Do not call dwarf_build_psymtabs.
79 * symfile.h (dwarf_build_psymtabs): Delete prototype.
80 * config/m68k/monitor.mt (TDEPFILES): Prune.
81 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
82 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
83
20389057
DJ
842007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
85
86 * doublest.c (convert_floatformat_to_doublest): Use
87 floatformat_classify.
88 (floatformat_is_nan): Rename to...
89 (floatformat_classify): ...this. Return more information.
90 * doublest.h (enum float_kind): New.
91 (floatformat_is_nan): Replace prototype...
92 (floatformat_classify): ...with this one.
93 * valprint.c (print_floating): Use floatformat_classify. Handle
94 infinity.
95
30b50213
DJ
962007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
97
98 * README: Mention ISO C library requirement.
99
8807d78b
DJ
1002007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
101
102 * Makefile.in (SFILES): Remove nlmread.c.
103 (COMMON_OBS): Remove nlmread.o.
104 (nlmread.o): Delete rule.
105 * README: Delete reference to remote-st.c.
106 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
107 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
108 GDB_OSABI_LYNXOS.
109 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
110 (_initialize_i386_tdep): Do not reference them.
111 * nlmread.c: Delete file.
112 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
113 * target.c: Doc update.
114 * thread.c: Delete commented include.
115 * config/alpha/tm-alpha.h: Doc update.
116
ced572fe
MR
1172007-03-30 Chris Dearman <chris@mips.com>
118
119 * utils.c (string_to_core_addr): Comment typo.
120
8a9fc081
MR
1212007-03-30 Chris Dearman <chris@mips.com>
122
123 * mips-tdep.c: Comment typo.
124
5f402660
UW
1252007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
126
127 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
128 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
129 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
130 * config/powerpc/nm-ppc64-linux.h: Remove file.
131 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
132 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
133 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
134 * infptrace.c (call_ptrace): Likewise.
135 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
136 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
137 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
138 (store_register): Likewise.
139
bbf90c81
JB
1402007-03-29 Joel Brobecker <brobecker@adacore.com>
141
142 * Makefile.in (varobj.o): Add missing dependency.
143
243c053b
MS
1442007-03-29 Michael Snyder <msnyder@access-company.com>
145
146 * MAINTAINERS: Update my email address.
147
0259addd
JB
1482007-03-29 Joel Brobecker <brobecker@adacore.com>
149
150 Add support for exception handling with multiple versions of
151 the Ada runtime:
152 * ada-lang.c: Update general comments on how Ada exception catchpoints
153 are implemented.
154 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
155 (__gnat_raise_nodefer_with_msg): Delete.
156 (ada_unhandled_exception_name_addr_ftype): New type.
157 (exception_support_info): New type.
158 (ada_unhandled_exception_name_addr): Add forward declaration.
159 (ada_unhandled_exception_name_addr_from_raise): Likewise.
160 (default_exception_support_info): New constant.
161 (exception_support_info_fallback): Likewise.
162 (exception_info): New global variable.
163 (ada_exception_support_info_sniffer): New function.
164 (ada_executable_changed_observer): Likewise.
165 (ada_unhandled_exception_name_addr_from_raise): Renamed from
166 ada_unhandled_exception_name_addr.
167 (ada_unhandled_exception_name_addr): Reimplement to match the
168 latest Ada runtime implementation.
169 (error_breakpoint_runtime_sym_not_found): Delete.
170 (ada_exception_sym_name): Get the exception sym name from
171 exception_info rather than hardcoding it.
172 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
173 Update error handling.
174 * Makefile.in (ada-lang.o): Add dependency on observer.h.
175
483367ee
DJ
1762007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
177
178 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
179 (remote-st.o, uw-thread.o): Delete.
180 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
181 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
182 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
183 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
184 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
185 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
186 rs6000-*-lynxos* to an obsoletion stanza.
187 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
188 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
189 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
190 i[34567]86-*-netware*.
191 * NEWS: Mention deleted targets.
192
193 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
194 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
195 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
196 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
197 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
198 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
199 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
200 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
201 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
202 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
203 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
204 config/rs6000/tm-rs6000ly.h: Delete files.
205
3adda9d8
DJ
2062007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
207
208 * defs.h (deprecated_registers_changed_hook): Delete declaration.
209 * interps.c (clear_interpreter_hooks): Do not clear
210 deprecated_registers_changed_hook.
211 * regcache.c (registers_changed): Do not call it.
212 * top.c (deprecated_registers_changed_hook): Do not define it.
213 * mi/mi-interp.c (mi_command_loop): Do not clear it.
214 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
215 (tui_remove_hooks): Do not remove it.
216 (tui_selected_frame_level_changed_hook): Check for negative level.
217 Use get_selected_frame.
218 (tui_registers_changed_hook): Deleted.
219
bf362611
JB
2202007-03-29 Joel Brobecker <brobecker@adacore.com>
221
222 * stabsread.c (add_undefined_type): Add extra parameter.
223 Now handles nameless types separately.
224 (struct nat): New type.
225 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
226 New static variables.
227 (read_type): Update calls to add_undefined_type.
228 (add_undefined_type_noname): New function.
229 (add_undefined_type_1): Renames from add_undefined_type.
230 (cleanup_undefined_types_noname): New function.
231 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
232 (cleanup_undefined_types): New handles nameless types separately.
233 (_initialize_stabsread): Initialize our new static constants.
234
436868fb
DP
2352007-03-29 Denis Pilat <denis.pilat@st.com>
236
237 * configure.ac: Test for signal.h.
238 * configure, config.in: Regenerate.
239
aaf9e9fd
DP
2402007-03-29 Denis Pilat <denis.pilat@st.com>
241
242 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
243 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
244
68070c10
PA
2452007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
246
247 * arm-wince-tdep.c: New.
248 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
249 (MT_CFLAGS): Delete.
250 (TM_CLIBS): Delete.
251 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
252 solib-legacy.o, solib-svr4.o, and remove wince.o.
253 * configure.tgt (arm*-*-mingw32ce*): Add.
254 * signals/signals.c [HAVE_SIGNAL_H]: Check.
255 (do_target_signal_to_host): Silence 'not used' warning.
256 * config/arm/tm-wince.h: Remove.
257
74174d2e
UW
2582007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
259
260 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
261 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
262
263 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
264 * config/ia64/tm-linux.h: Remove file.
265 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
266 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
267 legacy_pc_in_sigtramp.
268 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
269 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
270 Remove func_name argument.
271 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
272
273 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
274 * target.c (update_current_target): Add to_have_steppable_watchpoint.
275 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
276 (HAVE_STEPPABLE_WATCHPOINT): Define.
277
278 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
279 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
280 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
281 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
282 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
283 target_insert_watchpoint, target_remove_watchpoint): Remove.
284 (FETCH_INFERIOR_REGISTERS): Define.
285 * ia64-linux-nat.c (ia64_register_addr): Make static.
286 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
287 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
288 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
289 (ia64_linux_stopped_data_address): Make static. Add target_ops.
290 (ia64_linux_stopped_by_watchpoint): Make static.
291 (ia64_linux_can_use_hw_breakpoint): New function.
292 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
293 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
294 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
295
53c5240f
PA
2962007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
297
298 * linespec.c: Include language.h.
299 (find_methods): Add language parameter. Call
300 lookup_symbol_in_language. Pass language down.
301 (add_matching_methods): Likewise. Call
302 lookup_symbol_in_language.
303 (add_constructors): Likewise.
304 (find_method): Pass sym_class to collect_methods.
305 (collect_methods): Add sym_class parameter. Pass language
306 down.
307 * symtab.c (lookup_symbol): Rename to ...
308 (lookup_symbol_in_language): ... this. Add language
309 parameter. Use passed language instead of current_language.
310 (lookup_symbol): New as wrapper around
311 lookup_symbol_in_language.
312 (lookup_symbol_aux): Add language parameter. Use passed
313 language instead of current_language.
314 (search_symbols): Indent.
315 * symtab.h (enum language): Forward declare.
316 (lookup_symbol_in_language): Declare.
317 (lookup_symbol): Update description.
318 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
319 * ada-lang.c (restore_language): Remove.
320 (lookup_symbol_in_language): Remove.
321
8671a17b
PA
3222007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
323
324 * breakpoint.c (bpstat_num): Add int *num parameter.
325 * breakpoint.h (bpstat_num): Likewise.
326 * infcmd.c (continue_command): Adjust to new bpstat_num
327 interface.
328 (program_info): Likewise.
329
214197f9
UW
3302007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
331
332 * config/sh/tm-sh.h: Remove file.
333 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
334 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
335 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
336 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
337
bac718a6
UW
3382007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
339
340 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
341 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
342 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
343 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
344 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
345 sequence if target_shortname is "remote".
346
de6a76fd
DJ
3472007-03-27 Anton Blanchard <anton@samba.org>
348
349 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
350 instead of wordsize when looking for the LR in a stack frame.
351
4fc771b8
DJ
3522007-03-27 Andreas Schwab <schwab@suse.de>
353 Daniel Jacobowitz <dan@codesourcery.com>
354
355 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
356 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
357 argument. Update all callers.
358 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
359 (dwarf2_frame_set_eh_frame_regnum): Rename to...
360 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
361 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
362 (dwarf2_frame_set_adjust_regnum): ...this.
363 (dwarf2_frame_eh_frame_regnum): Delete prototype.
364 * rs6000-tdep.c: Include "dwarf2-frame.h".
365 (rs6000_adjust_frame_regnum): Define.
366 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
367 Register rs6000_adjust_frame_regnum.
368
369 * Makefile.in (rs6000-tdep.o): Update dependencies.
370
9453113a
DJ
3712007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
372
373 * Makefile.in: Add support for a "pdf" target.
374
d2449ee8
DJ
3752007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
376
377 * amd64-tdep.c (amd64_init_frame_cache): New function.
378 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
379
a72d8a8e
MR
3802007-03-26 Nigel Stephens <nigel@mips.com>
381 Maciej W. Rozycki <macro@mips.com>
382
383 * ui-out.c (ui_out_field_core_addr): Truncate address to
384 TARGET_ADDR_BIT size before printing.
385
5200c3f3 3862007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 387 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
388
389 * remote-mips.c (mips_xfer_memory): Update prototype.
390
16708cba
JB
3912007-03-22 Joel Brobecker <brobecker@adacore.com>
392
393 * symfile.h: #include "symtab.h"
394
0fe514e3
DP
3952007-03-22 Denis Pilat <denis.pilat@st.com>
396
397 * utils.c (pagination_on_command, pagination_off_command):
398 Remove useless prototypes.
399
4a52dc15
PM
4002007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
401
402 Fix PR pascal/2232.
403 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
404 instead of TYPE_NAME for object base class name.
405
406
1c86fa97
KB
4072007-03-19 Kevin Buettner <kevinb@redhat.com>
408
409 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
410 Specify frame type in calls to frame_func_unwind().
411
4e463ff5
DJ
4122007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
413
414 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
415 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
416 (refine_prologue_limit): Delete.
417 (skip_prologue): Don't call it. Use extract_unsigned_integer.
418 Assume lim_pc is set. Correct check for incomplete prologues.
419 Do not skip clobbers of the frame pointer.
420 * symtab.c (skip_prologue_using_sal): Fail if there is only one
421 sal.
422
348473d5
NF
4232007-03-13 Nathan Froyd <froydnj@codesourcery.com>
424
425 * frame.c (frame_pop): Check to see whether there's a frame to
426 which we can pop first.
427
a2f9cf0d
NF
4282007-03-13 Nathan Froyd <froydnj@codesourcery.com>
429
430 * MAINTAINERS (Write After Approval): Add myself.
431
569631c6
UW
4322007-03-09 Markus Deuling <deuling@de.ibm.com>
433
434 * infrun.c (breakpoints_failed): Remove unnecessary variable.
435 (handle_inferior_event): Remove unnecessary braces.
436 * breakpoint.c (bpstat_what): Remove wrong comment.
437
fe5febed
UW
4382007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
439
440 * spu-tdep.c (spu_in_function_epilogue_p): New function.
441 (spu_gdbarch_init): Install it.
442
9dea8ca2
UW
4432007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
444
445 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
446 object types, not 0.
447
7b3dc0b7
UW
4482007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
449
450 * spu-tdep.c (spu_frame_align): New function.
451 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
452
118dfbaf
UW
4532007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
454
455 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
456 (spu_software_single_step): Likewise.
457 (spu_read_pc, spu_write_pc): New functions.
458 (spu_gdbarch_init): Install them.
459
29e4017d
UW
4602007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
461
462 * cli/cli-dump.c (struct callback_data): load_offset needs to
463 have signed long type.
464
6de5b849
JB
4652007-03-07 Joel Brobecker <brobecker@adacore.com>
466
467 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
468 Revert the previous change that had some unexpected side-effects
469 on mips32.
470 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
471 function to get the address of the calling instruction.
472
7490ba4f
DP
4732007-03-07 Denis Pilat <denis.pilat@st.com>
474
475 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
476 get_selected_frame by deprecated_safe_get_selected_frame.
477
861fb77c
MK
4782007-03-02 Mark Kettenis <kettenis@gnu.org>
479
480 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
481 "gdb_string.h". Don't include "nbsd-tdep.h".
482 (SIZEOF_STRUCT_REG): Remove.
483 (SHNBSD_SIZEOF_GREGS): New.
484 (shnbsd_supply_gregset, shnbsd_collect_gregset)
485 (shnbsd_regset_from_core_section): New functions.
486 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
487 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
488 shnbsd_supply_gregset, shnbsd_collect_gregset.
489 (shnbsd_gregset): New variable.
490 (shnbsd_init_abi): Set regset_from_core_section.
491 (GDB_OSABI_NETBSD_CORE): New define.
492 (shnbsd_core_osabi_sniffer): New function.
493 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
494 * Makefile.in (shnbsd-tdep.o): Update dependencies.
495 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
496 nbsd-tdep.o.
497 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
498
787cbe14
JB
4992007-02-28 Joel Brobecker <brobecker@adacore.com>
500
501 * gdbtypes.c (replace_type): Fix typo that caused us to not update
502 length of the types referenced by the new type CV ring.
503
35f196d9
DJ
5042007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * frame.c (frame_pop, frame_observer_target_changed): Call
507 reinit_frame_cache.
508 (flush_cached_frames): Rename to reinit_frame_cache and delete
509 old implementation.
510 * frame.h (flush_cached_frames): Delete prototype and update comment.
511
512 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
513 reinit_frame_cache instead of flush_cached_frames. Do not call
514 select_frame after reinit_frame_cache.
515 * corelow.c (core_open): Likewise.
516 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
517 * infrun.c (prepare_to_proceed, context_switch)
518 (handle_inferior_event): Likewise.
519 * linux-fork.c (fork_load_infrun_state): Likewise.
520 * ocd.c (ocd_start_remote): Likewise.
521 * remote-e7000.c (e7000_start_remote): Likewise.
522 * remote-mips.c (device): Likewise.
523 * thread.c (switch_to_thread): Likewise.
524 * tracepoint.c (finish_tfind_command): Likewise.
525 * gdbarch.c: Regenerated.
526
c26f2453
JB
5272007-02-28 Jerome Guitton <guitton@adacore.com>
528 Joel Brobecker <brobecker@adacore.com>
529
530 * gdbtypes.c (check_typedef): Do not replace stub type if
531 the resolved type is not defined in the same objfile.
532
7d900f1a
DJ
5332007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
534
535 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
536
76038652 5372007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
538
539 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
540 symbol for Ada units when the symbol is defined using 't' rather
541 than 'Tt' as symbol descriptor.
542
d74fb156 5432007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
544
545 * config/mips/tm-nbsd.h: Delete file.
546 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
547 * config/sh/tm-nbsd.h: Delete file.
548 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
549
f8d225db
JB
5502007-02-28 Joel Brobecker <brobecker@adacore.com>
551
552 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
553 unused WRONG_PARAM value since it was recently deleted.
554
1bbfb19a
NR
5552007-02-28 Vladimir Prus <vladimir@codesourcery.com>
556
557 * varobj.c (varobj_update): Free temporary vectors.
558
6f7f3f0d
UW
5592007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
560
561 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
562 * config/powerpc/tm-linux.h: Delete file.
563 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
564 (PROCESS_LINENUMBER_HOOK): Do not undefine.
565 (TEXT_SEGMENT_BASE): Do not redefine.
566 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
567 from config/rs6000/tm-rs6000.h.
568 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
569 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
570 (TEXT_SEGMENT_BASE): Remove.
571 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
572 (rs6000_in_solib_return_trampoline): Remove.
573 (SKIP_TRAMPOLINE_CODE): Remove.
574 (rs6000_skip_trampoline_code): Remove.
575 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
576 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
577 (FP0_REGNUM): Remove.
578 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
579 (rs6000_set_host_arch_hook): Remove.
580 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
581 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
582 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
583 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
584 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
585 * rs6000-nat.c: Include "rs6000-tdep.h".
586 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
587 (set_host_arch): Rename to ...
588 (rs6000_create_inferior): ... this. Make public.
589 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
590 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
591 (rs6000_create_inferior): Remove.
592 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
593 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
594 set_gdbarch_in_solib_return_trampoline, and
595 set_gdbarch_skip_trampoline_code.
596 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
597 from config/rs6000/tm-rs6000.h.
598
63050a44 5992007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
600
601 * buildsym.c (record_producer): Do nothing if no producer is provided.
602
63050a44 6032007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
604
605 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
606 to check changelist is non-NULL. Call error if the frontend tries
607 to update a non-root variable.
608
609 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
610
93d42b30
DJ
6112007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
612
613 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
614 (dwarf2_frame_sniffer): Update.
615 (dwarf2_signal_frame_this_id): New function.
616 (dwarf2_signal_frame_unwind): Use it.
617 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
618 * frame.c (frame_func_unwind): Add this_type argument.
619 (get_frame_func): Update.
620 (frame_unwind_address_in_block): Add this_type argument and check it.
621 Fix a typo.
622 (get_frame_address_in_block): Update.
623 * frame.h (enum frame_type): Move higher in the file.
624 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
625 argument.
626
627 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
628 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
629 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
630 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
631 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
632 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
633 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
634 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
635 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
636 frame_func_unwind and frame_unwind_address_in_block to specify
637 the frame type. Use frame_unwind_address_in_block instead of
638 frame_pc_unwind in sniffers.
639
206415a3
DJ
6402007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
641
642 * frame.c (deprecated_selected_frame): Rename to...
643 (selected_frame): ...this. Make static.
644 (get_selected_frame, select_frame): Update.
645 * frame.h (deprected_select_frame): Delete.
646 (deprecated_safe_get_selected_frame): Update comments.
647
648 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
649 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
650 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
651 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
652 tui/tui.c: Replace references to deprecated_selected_frame.
653
7313566f
FF
6542007-02-27 Fred Fish <fnf@specifix.com>
655
656 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
657 directly decrement the stack pointer, accumulate their operand into
658 the stack offset, and mark the function as not being frameless.
659
b6d373df
DJ
6602007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
661
662 * arch-utils.c (selected_byte_order): New.
663 * arch-utils.h (selected_byte_order): New prototype.
664 * remote-sim.c (gdbsim_open): Use selected_byte_order.
665
2711e456
DJ
6662007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
669 (default_symfile_offsets): Check VMA here. Update section VMAs.
670
baef701f
DJ
6712007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
672
673 * remote.c (init_remote_state): Add special handling for placeholder
674 registers.
675
05a4558a
DJ
6762007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
677
678 * Makefile.in (XMLFILES): Include $(TDEP_XML).
679 (filenames_h): New variable.
680 (clean): Clean up xml-builtin.c and stamp-xml.
681 (arm-linux-nat.o): Update.
682 * config/arm/linux.mh (TDEP_XML): Define.
683 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
684 (arm_linux_has_wmmx_registers): New.
685 (GET_THREAD_ID): Fix typo.
686 (IWMMXT_REGS_SIZE): Define.
687 (fetch_wmmx_regs, store_wmmx_regs): New.
688 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
689 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
690 (super_xfer_partial, arm_linux_xfer_partial): New.
691 (_initialize_arm_linux_nat): Use them.
692 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
693 (xml_builtin_xfer_partial): New function.
694 * xml-support.h (xml_builtin_xfer_partial): New prototype.
695 * NEWS: Update mention of iWMMXt support.
696
ff6f572f
DJ
6972007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
698
699 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
700 if there are no FPA registers.
701 (arm_dwarf_reg_to_regnum): New function.
702 (arm_register_type, arm_register_name): Return minimal values for
703 unsupported registers.
704 (arm_register_sim_regno): Handle iWMMXt registers.
705 (arm_gdbarch_init): Record missing FPA registers if indicated by
706 a target description. Recognize iWMMXt registers. Only register
707 "info float" for FPA. Use ARM_NUM_REGS. Register
708 arm_dwarf_reg_to_regnum.
709 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
710 constants.
711 (struct gdbarch_tdep): Add have_fpa_registers.
712 * features/xscale-iwmmxt.xml: Update capitalization.
713 * regformats/arm-with-iwmmxt.dat: Regenerated.
714
c077150c
KB
7152007-02-24 Kevin Buettner <kevinb@redhat.com>
716
717 * NEWS (New targets): Add entry for the Toshiba Media Processor.
718
01c996c1
KB
7192007-02-23 Kevin Buettner <kevinb@redhat.com>
720
721 * MAINTAINERS (mep): New target.
722
aeb43123
KB
7232007-02-23 Kevin Buettner <kevinb@redhat.com>
724
725 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
726 Richard Sandiford:
727 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
728 (mep-tdep.o): New rule.
729 * configure.tgt (mep-*-*): New target.
730 * mep-tdep.c: New file.
731 * config/mep/mep.mt: New file.
732
115d86cf
UW
7332007-02-22 Markus Deuling <deuling@de.ibm.com>
734
735 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
736 BREAKPOINT_HIT and STOP_UNKNOWN.
737
fef862e5
UW
7382007-02-22 Markus Deuling <deuling@de.ibm.com>
739
740 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
741
9a7d5afb
JB
7422007-02-20 Joel Brobecker <brobecker@adacore.com>
743
744 * gdb_expat.h (XMLCALL): Define if not already defined.
745
81de920d
AS
7462007-02-20 Andreas Schwab <schwab@suse.de>
747
748 * Makefile.in (symfile.o): Update dependencies.
749
cb5c8c39
DJ
7502007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
751
752 * MAINTAINERS: Disable -Werror for cris simulator. Build
753 sparc64-solaris2.10 instead of the broken sparc-elf.
754 * solib-frv.c: Include "solib.h".
755 * Makefile.in (solib-frv.o): Update.
756 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
757 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
758 (xtensa_frame_this_id, xtensa_frame_prev_register)
759 (xtensa_push_dummy_call): Use %p.
760
e6bb342a
DJ
7612007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
762
763 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
764 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
765 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
766 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
767 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
768 (sparc-linux-tdep.o): Update.
769
ff7a4c00
MG
7702007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
771
772 * xtensa-tdep.h (xtensa_reg_mask_t): New.
773 (xtensa_mask_t): Change mask field to be a separate array.
774 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
775 (xtensa_pseudo_register_write, xtensa_unwind_pc)
776 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
777 (xtensa_breakpoint_from_pc): Remove implicit type casting.
778 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
779 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
780 (mask14, mask15): Rename to
781 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
782 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
783 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
784 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
785 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
786 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
787 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
788 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
789 (xtensa_submask14, xtensa_submask15): New.
790 (rmap): Follow strict aliasing rules doing static initialization.
791
d9cc5895
DJ
7922007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
793
794 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
795 handling from here...
796 (tdesc_register_type): ...to here.
797 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
798 * features/arm-core.xml: Use code_ptr and data_ptr.
799
8756216b
DP
8002007-02-13 Denis Pilat <denis.pilat@st.com>
801
802 * varobj.h (enum varobj_update_error): New enum.
803 * varobj.c (struct varobj_root): Add is_valid member.
804 (varobj_get_type): Check for invalid varobj.
805 (varobj_get_attributes): Likewise.
806 (variable_editable):Likewise.
807 (varobj_update): Likewise. Use varobj_update_error.
808 (new_root_variable): Set root varobj as valid by default.
809 (varobj_invalidate): New function.
810 * symfile.c (clear_symtab_users): Use varobj_invalidate.
811 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
812 Use varobj_update_error.
813
fe8e67fd
PM
8142007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
815
816 Fix PR pascal/2223.
817 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
818 Pascal language marker.
819 * dwarf2read.c (set_cu_language): Likewise.
820
c44537cf
CV
8212007-02-12 Corinna Vinschen <vinschen@redhat.com>
822
823 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
824 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
825 instead of target_terminal_init since inferior_ptid isn't set yet.
826
20dad8ea
PA
8272007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
828
829 * MAINTAINERS (Write After Approval): Add myself.
830
4ac94eda
FF
8312007-02-09 Fred Fish <fnf@specifix.com>
832
833 Based on work by Apple Computer, Inc.
834 * event-top.c (async_request_quit): Call quit() whenever either
835 quit_flag is set or immediate_quit is set.
836
b260b6c1
GDR
8372007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
838
839 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
840 type to a pointer to const struct block.
841 (ada_lookup_symbol_list): Don't cast away constness when calling
842 remove_out_of_scope_renamings.
843
8442007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
845
846 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
847 address of 'filename'; it is always non null.
848
0f5d55d8
JB
8492007-02-09 Joel Brobecker <brobecker@adacore.com>
850
851 * exec.c (add_to_section_table): Do not discard empty sections.
852
fb1e4ffc
DJ
8532007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
854
855 * features/Makefile, features/arm-with-iwmmxt.xml,
856 features/gdbserver-regs.xsl, features/number-regs.xsl,
857 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
858 * regformats/arm-with-iwmmxt.dat: Generate.
859 * NEWS: Mention iWMMXt.
860
123dc839
DJ
8612007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
864 (xml-tdesc.o): Update.
865 * xml-support.c: Add a comment.
866 (gdb_xml_enums_boolean): New variable.
867 (gdb_xml_parse_attr_enum): Use strcasecmp.
868 * xml-support.h (gdb_xml_enums_boolean): Declare.
869 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
870 next_regnum, and current_union.
871 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
872 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
873 (field_attributes, union_children, reg_attributes, union_attributes)
874 (vector_attributes, feature_attributes, feature_children): New.
875 (target_children): Make static. Add <feature>.
876 (tdesc_elements): Make static.
877 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
878 (struct tdesc_feature, tdesc_feature_p): New types.
879 (struct target_desc): Add features member.
880 (struct tdesc_arch_data, tdesc_data): New.
881 (target_find_description): Clarify error message. Warn about
882 ignored register descriptions.
883 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
884 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
885 (tdesc_data_cleanup, tdesc_numbered_register)
886 (tdesc_numbered_register_choices, tdesc_find_register)
887 (tdesc_register_name, tdesc_register_type)
888 (tdesc_remote_register_number, tdesc_register_reggroup_p)
889 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
890 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
891 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
892 (tdesc_create_feature, tdesc_record_type): New.
893 (free_target_description): Free features.
894 (_initialize_target_descriptions): Initialize tdesc_data.
895 * arch-utils.c (default_remote_register_number): New.
896 * arch-utils.h (default_remote_register_number): New prototype.
897 * target-descriptions.h (set_tdesc_pseudo_register_name)
898 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
899 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
900 (tdesc_numbered_register, tdesc_numbered_register_choices)
901 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
902 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
903 (tdesc_create_reg): Declare.
904 * gdbarch.sh (remote_register_number): New entry.
905 * gdbarch.c, gdbarch.h: Regenerate.
906 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
907 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
908
909 * arm-tdep.c (arm_register_aliases): New.
910 (arm_register_name_strings): Rename to...
911 (arm_register_names): ...this. Make const. Delete the old version.
912 (current_option, arm_register_byte): Delete.
913 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
914 (value_of_arm_user_reg): New.
915 (arm_gdbarch_init): Verify any described registers. Call
916 tdesc_use_registers. Don't use arm_register_byte. Create aliases
917 for standard register names.
918 (_initialize_arm_tdep): Do not adjust arm_register_names.
919 * user-regs.c (struct user_reg): Add baton member.
920 (append_user_reg, user_reg_add_builtin, user_regs_init)
921 (user_reg_add, value_of_user_reg): Use a baton for user
922 register functions.
923 * std-regs.c: Update.
924 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
925 (user_reg_add): Add baton argument.
926 * NEWS: Mention target description register support.
927 * features/arm-core.xml, features/arm-fpa.xml: New.
928 * eval.c (evaluate_subexp_standard): Allow ptype $register
929 when the program is not running.
930
87604222
NR
9312007-02-09 Nick Roberts <nickrob@snap.net.nz>
932
933 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
934
ee4f0f76
DJ
9352007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
936
937 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
938 info->disassembler_options to "any".
939
7af9851d
DJ
9402007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
941
942 * varobj.c (install_new_value): Only call value_get_print_value
943 if changeable.
944
8944021f
DJ
9452007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
946
947 Reported by timeless@gmail.com:
948 * gdb/target.c (target_flash_erase): Do not return void value.
949 (target_flash_done): Likewise.
950 * gdb/cli/cli-cmds.c (source_command): Likewise.
951
9522007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 953
4ac94eda 954 Based on work by Apple Computer, Inc.
5f960e00
FF
955 * event-top.c (handle_sigint): Set quit_flag.
956 (async_request_quit): Don't set quit_flag. Avoid calling quit()
957 if quit_flag has already been reset.
958
4998c1df
DJ
9592007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
960
961 * ser-mingw.c (pipe_windows_close): Move variable initialization back
962 up.
963
79da184e
FF
9642007-02-08 Fred Fish <fnf@specifix.com>
965
966 * defs.h (request_quit): Remove declaration.
967 * utils.c (request_quit): Remove definition.
968
3c77c82a
DJ
9692007-02-08 Joel Brobecker <brobecker@gnat.com>
970 Jan Kratochvil <jan.kratochvil@redhat.com>
971 Daniel Jacobowitz <dan@codesourcery.com>
972
973 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
974 (skip_prologue): Allow bl->blrl used by PIC code.
975
c1b6e682
DJ
9762007-02-08 Mark Kettenis <kettenis@gnu.org>
977 Daniel Jacobowitz <dan@codesourcery.com>
978
979 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
980 initialize tmp_obstack.
981 * p-valprint.c (pascal_object_print_value_fields)
982 (pascal_object_print_value): Likewise.
983
fe5dedf4
DJ
9842007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
985
986 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
987
3e461478
MK
9882007-02-08 Mark Kettenis <kettenis@gnu.org>
989
990 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
991 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
992
fc6e0168
DJ
9932007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
994
995 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
996 (xml_cache): New.
997 (tdesc_parse_xml): Cache expanded descriptions.
998
108546a0
DJ
9992007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1000
1001 * Makefile.in (XMLFILES): New.
1002 (COMMON_OBS): Add xml-builtin.o.
1003 (xml-builtin.c, stamp-xml): New rules.
1004 (xml-tdesc.o): Update.
1005 * features/feature_to_c.sh: New file.
1006 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1007 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1008 (gdb_xml_start_element): Initialize scope after possibly reallocating
1009 scopes. Move cleanup later. Handle the XInclude description
1010 specially.
1011 (gdb_xml_end_element): Only parse the body if there is a current element.
1012 Call XML_DefaultCurrent if there is no element.
1013 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1014 (struct xinclude_parsing_data, xinclude_start_include)
1015 (xinclude_end_include, xml_xinclude_default)
1016 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1017 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1018 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1019 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1020 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1021 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1022 XInclude directives. Use the compiled in DTD.
1023 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1024 directory name. Do not warn here.
1025 (file_read_description_xml): Update call. Warn here instead. Pass
1026 a dirname as baton.
1027 (fetch_available_features_from_target): New.
1028 (target_read_description_xml): Use it.
1029 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1030 to handle XInclude.
1031 * features/xinclude.dtd: New file.
1032
b5057acd
DJ
10332007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1034
1035 * linux-thread-db.c (check_for_thread_db): Return early if we have
1036 no libthread_db support.
1037
6a089cf2
DJ
10382007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1039
1040 * mi/mi-parse.h: Include <sys/time.h>.
1041
9fbcbb40
NR
10422007-02-05 Nick Roberts <nickrob@snap.net.nz>
1043
1044 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1045 instead of print_variable_value to print values.
1046
b3d2152a
NR
10472007-02-03 Nick Roberts <nickrob@snap.net.nz>
1048
1049 * mi/mi-main.c: Numerous formatting changes.
1050 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1051 removed in my previous change.
1052
79f0a97a
NR
10532007-02-03 Eli Zaretskii <eliz@gnu.org>
1054
1055 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1056 Use 1000000L instead of 1000000.
1057
95a98c01 10582007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
1059
1060 Based on work by Apple Computer, Inc.
1061
1062 * configure.ac: Test for sys/resource.h and getrusage.
1063 * configure, config.in: Regenerate.
1064
1065 * mi/mi-main.c: Include <sys/resource.h> if present.
1066 (rusage): Declare if HAVE_GETRUSAGE.
1067 (current_command_ts, do_timings): New static variables.
1068 (timestamp, print_diff_now, print_diff, timeval_diff):
1069 New static timing functions.
1070 (mi_cmd_enable_timings): New function for new MI command.
1071 (captured_mi_execute_command, mi_execute_async_cli_command):
1072 Call timing functions.
1073
1074 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1075 -enable-timings.
1076
1077 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1078
1079 * mi/mi-parse.h: (mi_timestamp): New structure.
1080 (mi_parse): Add mi_timestamp* member.
1081
99b3d574
DP
10822007-02-02 Denis Pilat <denis.pilat@st.com>
1083
1084 * thread.c (make_cleanup_restore_current_thread): New function.
1085 (info_threads_command): Use of make_cleanup_restore_current_thread
1086 to restore the current thread and the selected frame.
1087 (restore_selected_frame): New function.
1088 (struct current_thread_cleanup): Add frame_id field.
1089 (do_restore_current_thread_cleanup): Add restoring of the selected
1090 frame.
1091 (make_cleanup_restore_current_thread): Likewise.
1092 (thread_apply_all_command): backup the selected frame while
1093 entering the function and restore it at exit.
1094 (thread_apply_command): Likewise.
1095
d3c598de
DP
10962007-02-02 Denis Pilat <denis.pilat@st.com>
1097
1098 * MAINTAINERS (Write After Approval): Add myself to the list.
1099
b69733ab 11002007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
1101
1102 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1103 (m32r_store_register): Ditto.
1104
b69733ab 11052007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
1106
1107 * ser-mingw.c (pipe_windows_open)
1108 (pipe_windows_read, pipe_windows_write): Declare
1109 variables at the top of the function.
1110
8da61cc4
DJ
11112007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1112
1113 * doublest.c (floatformat_from_length): Use the right element from
1114 gdbarch floatformats.
1115 (floatformat_from_type, extract_typed_floating)
1116 (store_typed_floating): Likewise.
1117 * doublest.h: Remove declarations for undefined floatformat arrays.
1118 * gdbarch.sh (float_format, double_format, long_double_format): Change
1119 to pairs.
1120 (pformat): Update for pairs.
1121 * gdbarch.c, gdbarch.h: Regenerated.
1122 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1123 (floatformats_ieee_double_littlebyte_bigword)
1124 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1125 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1126 (floatformats_vax_d): New variables.
1127 (builtin_type_ieee_single, builtin_type_ieee_double)
1128 (builtin_type_arm_ext, builtin_type_ia64_spill)
1129 (builtin_type_ia64_quad): Replace arrays with individual types.
1130 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1131 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1132 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1133 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1134 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1135 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1136 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1137 unused and endian-specific types.
1138 (recursive_dump_type): Update for floatformat pairs.
1139 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1140 (build_gdbtypes): Use build_flt.
1141 (_initialize_gdbtypes): Update set of initialized types.
1142 * gdbtypes.h: Update declarations to match gdbtypes.c.
1143 (struct main_type): Store a pointer to two floatformats.
1144 * arch-utils.c (default_float_format, default_double_format): Delete.
1145 * arch-utils.h (default_float_format, default_double_format): Delete.
1146
1147 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1148 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1149 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1150 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1151 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1152
87680a14
JB
11532007-01-29 Joel Brobecker <brobecker@adacore.com>
1154
1155 * target.c (maintenance_print_target_stack): New function.
1156 (initialize_targets): Add new "maintenance print target-stack"
1157 command.
1158
1c3d648d
MK
11592007-01-28 Mark Kettenis <kettenis@gnu.org>
1160
1161 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1162
607269ae
DJ
11632007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1164
1165 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1166 (struct dwarf2_loclist_baton): Likewise.
1167
40c03ae8
EZ
11682007-01-27 Eli Zaretskii <eliz@gnu.org>
1169
1170 * cli/cli-script.c: Include breakpoint.h.
1171 (build_command_line): Require arguments only for if and while
1172 commands.
1173 (get_command_line, execute_user_command, execute_control_command):
1174 Fix wording of warning messages.
1175 (print_command_lines): Print breakpoint commands.
1176 (execute_control_command): Call commands_from_control_command to
1177 handle the `commands' command inside a body of a flow-control
1178 command.
1179 (read_next_line): Recognize the `commands' command and build a
1180 command line structure for it.
1181 (recurse_read_control_structure, read_command_lines): Handle
1182 `commands' similarly to `if' and `while'.
1183
1184 * breakpoint.c (get_number_trailer): Document the special meaning
1185 of NULL as the first argument PP.
1186 (commands_from_control_command): New function.
1187
1188 * breakpoint.h (commands_from_control_command): Add prototype.
1189
1190 * defs.h (commands_control): New enumerated value for enum
1191 command_control_type.
1192
4b9eee8c
JB
11932007-01-26 Joel Brobecker <brobecker@adacore.com>
1194
1195 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1196 (ada_exception_sal): Update accordingly.
1197
e1f48ead
JK
11982007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1201 * NEWS: Describe CHAR array vs. string identifcation rules.
1202
e150acc7
PB
12032007-01-25 Paul Brook <paul@codesourcery.com>
1204
1205 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1206
10fb19b6
JB
12072007-01-24 Jim Blandy <jimb@codesourcery.com>
1208
1209 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1210 expression is empty, bother to return the 'optimized out' value we
1211 construct. (Thanks to Carl Burch.)
1212
85d93f1d
VP
12132007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1214
1215 * varobj.c (c_value_of_root, c_value_of_child)
1216 (cplus_describe_child): Don't call release_value.
1217
fcbd8a5c
TS
12182007-01-24 Thiemo Seufer <ths@mips.com>
1219
1220 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1221 initialization.
1222
2024f65a
VP
12232007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1224
1225 Refactor getting children name, value and type access
1226 for varobjs in C++.
1227 * varobj.c (get_type_deref): Remove.
1228 (adjust_value_for_child_access): New.
1229 (c_number_of_children): Use the above.
1230 (c_describe_child): Likewise.
1231 (enum accessibility): New.
1232 (match_accessibility): New function.
1233 (cplus_describe_child): New function.
1234 (cplus_name_of_child, cplus_value_of_child)
1235 (cplus_type_of_child): Reimplement in terms
1236 of cplus_describe_child.
1237 (cplus_number_of_children): Use
1238 adjust_value_for_child_access.
1239
6e2a9270
VP
12402007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1241
1242 Fix computation of the 'editable' attribute and
1243 value changeability for for references.
1244 * varobj.c (get_value_type): New function.
1245 (c_variable_editable): Use get_value_type.
1246 (varobj_value_is_changeable): Likewise.
1247
56163ce1
JB
12482007-01-24 Joel Brobecker <brobecker@adacore.com>
1249
1250 * source.c (find_and_open_source): Try rewriting the source
1251 path inside filename if dirname is NULL.
1252
8c6860bb
JB
12532007-01-24 Joel Brobecker <brobecker@adacore.com>
1254
1255 * dwarf2read.c (add_partial_symbol): Create an extra partial
1256 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1257 (new_symbol): Likewise for symbols.
1258
6db6d2ca
NR
12592007-01-24 Nick Roberts <nickrob@snap.net.nz>
1260
1261 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1262
7d85ee02
VP
12632007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1264
1265 * value.c (value_primitive_field): Copy the full 'location'
1266 contents, instead of assuming that copying ADDRESS will
1267 bring over everything in the union. Remove obsolete comment.
1268
f79b9530
DJ
12692007-01-23 Masaki Muranaka <monaka@monami-software.com>
1270
1271 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1272 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1273 (m32c_m16c_pointer_to_address): Separate code from declarations.
1274
08d8bcd7
DJ
12752007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1276
1277 * target.c (update_current_target): Correct typo.
1278
57fdbbbe
CV
12792007-01-22 Masaki Muranaka <monaka@monami-software.com>
1280
1281 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1282 declaration.
1283
58894217
JK
12842007-01-11 Andrew Cagney <cagney@redhat.com>
1285 Daniel Jacobowitz <dan@codesourcery.com>
1286 Jan Kratochvil <jan.kratochvil@redhat.com>
1287
1288 * dwarf2-frame.c (execute_cfa_program): New support of
1289 `DW_CFA_GNU_negative_offset_extended'.
1290
9ebce043
DJ
12912007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1292
1293 * NEWS: Mention flash support for "load" and new remote packets.
1294
973d738b
DJ
12952007-01-21 Markus Deuling <deuling@de.ibm.com>
1296
1297 * breakpoint.c (delete_command): Skip redundant loop iterations.
1298
7b9ee6a8
DJ
12992007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1300
1301 * gdbarch.sh (register_type): Update comment.
1302 * gdbarch.h: Regenerated.
1303 * arch-utils.c (generic_register_size): Call register_type.
1304 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1305 * m32c-tdep.c (check_for_saved): Likewise.
1306 * mips-tdep.c (mips_print_register, print_gp_register_row)
1307 (mips_print_registers_info): Likewise.
1308 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1309 Likewise.
1310 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1311 (sh64_do_register, sh64_print_register)
1312 (sh64_media_print_registers_info): Likewise.
1313 * tui/tui-regs.c (tui_register_format): Likewise.
1314
11309657
DJ
13152007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1316
1317 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1318
1319 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1320 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1321 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1322 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1323 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1324 (make_symbol_completion_list): Likewise.
1325
cb1df416
DJ
13262007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1327 Daniel Jacobowitz <dan@codesourcery.com>
1328
1329 * buildsym.c (end_symtab): Use preallocated symtab if available.
1330 Fill in SYMBOL_SYMTAB.
1331 * buildsym.h (struct subfile): Add symtab member.
1332 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1333 (struct file_entry): Add symtab.
1334 (free_cu_line_header): New function.
1335 (read_file_scope): Use it. Save line_header in the cu. Process
1336 lines before DIEs.
1337 (add_file_name): Initialize new symtab member.
1338 (dwarf_decode_lines): Create symtabs for included files.
1339 (new_symbol): Set SYMBOL_SYMTAB.
1340 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1341 (search_symbols): Likewise.
1342 * symtab.h (struct symbol): Add symtab member.
1343 (SYMBOL_SYMTAB): Define.
1344
727da900
DJ
13452007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1346
1347 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1348
7b6b9e83
DJ
13492007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1350
1351 * arch-utils.c (show_endian): Correct reversed condition.
1352
e767400c
JK
13532007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * MAINTAINERS (Write After Approval): Add myself.
1356
b20d8971
VP
13572007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
1358 Vladimir Prus <vladimir@codesourcery.com>
1359
1360 Fix 'selected frame' varobjs.
1361 * varobj.c (struct varobj): Remove the error field.
1362 (varobj_set_value): Don't check var->error.
1363 (install_new_value): Don't set var->error.
1364 (varobj_update): Always pass the new value
1365 of the root via install_new_value.
1366 (create_child): Don't set error field.
1367 (new_variable): Likewise.
1368 (c_value_of_root): Always reevaluate the value
1369 of selected frame varobjs in the selected frame.
1370 Don't call reinit_frame_cache.
1371
7ef2b397
JB
13722007-01-15 Joel Brobecker <brobecker@adacore.com>
1373
1374 * source.c (_initialize_source): Improve the help text of
1375 the substitute-path commands.
1376
1208538e
MK
13772007-01-14 Mark Kettenis <kettenis@gnu.org>
1378
1379 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1380 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1381 (frv_skip_prologue): Remove prototypes.
1382 (frv_adjust_breakpoint_address): Renamed from
1383 frv_gdbarch_adjust_breakpoint_address.
1384 (frv_gdbarch_init): Adjust.
1385
765f065a
MK
13862007-01-13 Mark Kettenis <kettenis@gnu.org>
1387
5e66aab2
MK
1388 * gdbarch.sh (deprecated_extract_return_value)
1389 (deprecated_store_return_value): Remove.
1390 (extract_return_value, store_return_value): Remove default values.
1391 * gdbarch.c, gdbarch.h: Regenerate.
1392 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1393 (legacy_store_return_value): Remove.
1394 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1395 Remove.
1396
56178203
MK
1397 * mi/mi-main.c: Remove obsolete comment.
1398
23303b2e
MK
1399 * regcache.c, regcache.h (deprecated_register_bytes)
1400 (deprecated_read_register_bytes)
1401 (deprecated_write_register_bytes): Remove.
1402
765f065a
MK
1403 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1404 Don't forget to move destination pointer.
1405
610acfff
MK
14062007-01-01 Mark Kettenis <kettenis@gnu.org>
1407
1408 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1409
12102450
UW
14102007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
1411
1412 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1413 past entry function with recent newlib.
1414
c8b2f53c
VP
14152007-01-11 Vladimir Prus <vladimir@codesourcery.com>
1416
1417 * gdb.texinfo (GDB/MI Variable Objects): Improve the
1418 introduction. Specify -var-update more exactly.
1419
d57df5e4
DJ
14202007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
1421
1422 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1423
03f597d5
JB
14242007-01-10 Jim Blandy <jimb@codesourcery.com>
1425
1426 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1427 the Global Maintainers' invitation to be a global maintainer.
1428
fd48f117
DJ
14292007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
1430
1431 * infrun.c (singlestep_pc): New variable.
1432 (resume): Set singlestep_pc.
1433 (context_switch): Add a debugging message. Flush the frame cache.
1434 (handle_inferior_event): Add debugging messages. Handle thread
1435 hops when a software single step has completed. Let context_switch
1436 handle flushing the frame cache.
1437
23181151
DJ
14382007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1439
1440 * NEWS: Mention target descriptions, "set tdesc filename",
1441 "unset tdesc filename", "show tdesc filename", and
1442 qXfer:features:read.
1443 * arch-utils.c (choose_architecture_for_target): New function.
1444 (gdbarch_info_fill): Call it.
1445 * target-descriptions.c (struct property): Make members non-const.
1446 (struct target_desc): Add arch member.
1447 (target_description_filename): New variable.
1448 (target_find_description): Try via XML first.
1449 (tdesc_architecture): New.
1450 (free_target_description, make_cleanup_free_target_description): New.
1451 (set_tdesc_property): Call xstrdup.
1452 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1453 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1454 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1455 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1456 * target-descriptions.h (tdesc_architecture)
1457 (make_cleanup_free_target_description, set_tdesc_architecture): New
1458 prototypes.
1459 * Makefile.in (SFILES): Add xml-tdesc.c.
1460 (COMMON_OBS): Add xml-tdesc.o.
1461 (target-descriptions.o): Update.
1462 (xml-tdesc.o): New rule.
1463 * xml-tdesc.c, xml-tdesc.h: New files.
1464 * remote.c (PACKET_qXfer_features): New enum.
1465 (remote_protocol_features): Add qXfer:features:read.
1466 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1467 (_initialize_remote): Register qXfer:features:read.
1468 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1469 * features/gdb-target.dtd: New file.
1470
3e9cb5f4
DJ
14712007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1472
1473 * copyright.sh: Clarify error.
1474
818f79f6
DJ
14752007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 * symtab.c (matching_bfd_sections): Fix VMA matching for
1478 prelinked objects.
1479
f7a6bb70
DJ
14802007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1483 nested symbols.
1484
20ac0504
DJ
14852007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1486
1487 Updated copyright notices for most files.
1488
85bb0718
DJ
14892007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1490
1491 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1492
aa28a74e
DJ
14932007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1494
1495 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1496 exec_prefix.
1497 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1498 '${prefix}'.
1499 * configure, config.in: Regenerate.
1500 * defs.h (debug_file_directory): Declare.
1501 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1502 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1503 relocate it if DEBUGDIR_RELOCATABLE.
1504 * symfile.c (debug_file_directory): Make non-static.
1505 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1506 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1507 (_initialize_symfile): Don't initialize debug_file_directory here.
1508
1cfd2c3e
JB
15092007-01-09 Jim Blandy <jimb@codesourcery.com>
1510
1511 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1512 statements.
1513
5efde112
DJ
15142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1515
1516 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1517 frame_unwind_register to recurse.
1518 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1519 (alpha_heuristic_frame_prev_register): Likewise.
1520 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1521 * m32c-tdep.c (m32c_prev_register): Likewise.
1522 * frame.c (frame_register_unwind_location): Remove FIXME.
1523
4de1f557
DJ
15242007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1525 Eli Zaretskii <eliz@gnu.org>
1526
1527 * copyright.sh: New file.
1528
ca4ca11e
DJ
15292007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1530
1531 * configure.ac: Check for XML_StopParser.
1532 * xml-support.c (gdb_xml_body_text): Check for an error.
1533 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1534 (gdb_xml_end_element_wrapper): Likewise.
1535 * config.in, configure: Regenerated.
1536
57e66780
DJ
15372007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1538
1539 * varobj.c (install_new_value): Always update print_value.
1540 (value_get_print_value): Immediately return NULL for missing
1541 values.
1542
b523a1fd
JB
15432007-01-08 Jim Blandy <jimb@codesourcery.com>
1544
1545 * configure.ac: Tighten pattern for extracting value of
1546 DEPRECATED_TM_FILE from the target makefile fragment.
1547 * configure: Regenerated.
1548
3d799a95
DJ
15492007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1550
1551 * linux-nat.c (struct simple_pid_list): Add status.
1552 (add_to_pid_list): Record the PID's status.
1553 (linux_record_stopped_pid): Likewise. Make static.
1554 (pull_pid_from_list): Return the saved status.
1555 (linux_nat_handle_extended): Deleted.
1556 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1557 Make static. Handle non-SIGSTOP for a new thread's first signal.
1558 (flush_callback): Handle unexpected pending signals.
1559 (linux_nat_wait): Update calls to changed functions.
1560 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1561 Remove prototypes for newly static functions.
1562
9acbedc0
UW
15632007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1564
1565 * gdbarch.sh (value_from_register): New gdbarch function.
1566 * gdbarch.c, gdbarch.h: Regenerate.
1567 * findvar.c (default_value_from_register): New function.
1568 (value_from_register): Use gdbarch_value_from_register.
1569 * value.h (default_value_from_register): Declare.
1570 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1571 spu_value_to_register): Remove.
1572 (spu_value_from_register): New function.
1573 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1574 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1575 Call set_gdbarch_value_from_register.
1576 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1577 s390_value_to_register): Remove.
1578 (s390_value_from_register): New function.
1579 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1580 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1581 Call set_gdbarch_value_from_register.
1582
f822c95b
DJ
15832007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1584
1585 * NEWS: Add "set sysroot" and "show sysroot".
1586 * solib.c (solib_absolute_prefix): Delete. Replace
1587 all uses with gdb_sysroot.
1588 (_initialize_solib): Add "set sysroot" and "show sysroot".
1589 Make "solib-absolute-prefix" an alias to it.
1590
00fa51f6
UW
15912007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1592
1593 * frame.c (get_frame_register_bytes): New function.
1594 (put_frame_register_bytes): Likewise.
1595 * frame.h (get_frame_register_bytes): Declare.
1596 (put_frame_register_bytes): Likewise.
1597 * findvar.c (value_from_register): Always construct lval_register
1598 values. Use get_frame_register_bytes.
1599 * valops.c (value_assign): Use get_frame_register_bytes and
1600 put_frame_register_bytes.
1601
a95c9d06
JB
16022007-01-08 Jim Blandy <jimb@codesourcery.com>
1603
1604 * MAINTAINERS: Update Stan Shebs' email address.
1605
4ed6b5be
JB
16062007-01-07 Joel Brobecker <brobecker@adacore.com>
1607
1608 * ada-lang.c (is_known_support_routine): Improve the implementation.
1609
9bbc9174
JB
16102007-01-06 Joel Brobecker <brobecker@adacore.com>
1611
1612 * ada-lang.c: Add include of source.h.
1613 (is_known_support_routine): Improve the check verifying that the file
1614 associated to this frame exists.
1615 * Makefile.in (ada-lang.o): Add dependency on source.h.
1616
44a81774
JB
16172007-01-07 Jim Blandy <jimb@codesourcery.com>
1618
1619 * ax-general.c (ax_const_l): Select proper opcode for the given
1620 value.
1621
fcd19eb1 16222007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
1623
1624 * varobj.c (c_value_of_root): Don't select frame if variable
1625 object is out of scope.
1626
fcd19eb1 16272007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
1628
1629 * varobj.c (struct varobj): New member print_value.
1630 (install_new_value): Compare last printed value with current one
1631 instead of contents.
1632 (new_variable): Initialize var->print_value to NULL.
1633 (free_variable): Free var->print_value.
1634 (value_get_print_value): New function derived from
1635 c_value_of_variable.
1636 (c_value_of_variable): Use value_get_print_value.
1637
92a56b20
JB
16382007-01-05 Joel Brobecker <brobecker@adacore.com>
1639
1640 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1641
0e420bd8
JB
16422007-01-05 Joel Brobecker <brobecker@adacore.com>
1643
1644 * NEWS: Add entries for new catch commands.
1645
b69733ab 16462007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
1647
1648 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1649 (add_partial_symbol): Correct identification of external references.
1650 (process_structure_scope): Likewise.
1651 (read_partial_die): Handle DW_AT_byte_size attribute.
1652
16532007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
1654
1655 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1656
8e38af42
NR
16572007-01-05 Nick Roberts <nickrob@snap.net.nz>
1658
1659 * varobj.c (get_type_deref): Fix variable objects for references to
1660 pointers.
1661
d1c79ecd
DJ
16622007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1663
1664 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1665 with no symbols.
1666
e776119f
DJ
16672007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1668
1669 * memory-map.c (struct_memory_map_parsing_data): Remove most
1670 members. Make property_name an array.
1671 (free_memory_map_parsing_data, memory_map_start_element)
1672 (memory_map_end_element, memory_map_character_data): Delete.
1673 (memory_map_start_memory, memory_map_end_memory)
1674 (memory_map_start_property, memory_map_end_property): New functions.
1675 (property_attributes, memory_children, memory_type_enum)
1676 (memory_attributes, memory_map_children, memory_map_elements): New.
1677 (parse_memory_map): Rewrite.
1678 * xml-support.c (debug_xml): New.
1679 (xml_get_required_attribute, xml_get_integer_attribute)
1680 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1681 Delete.
1682 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1683 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1684 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1685 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1686 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1687 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1688 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1689 New.
1690 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1691 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1692 (enum gdb_xml_element_flag, struct gdb_xml_element)
1693 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1694 (struct gdb_xml_enum): New.
1695 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1696 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1697 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1698 (xml_get_required_attribute, xml_get_integer_attribute)
1699 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1700 * Makefile.in (xml_support_h, xml-support.o): Update.
1701
5e572bb4
DJ
17022007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1703
1704 * Makefile.in (eval.o): Update dependencies.
1705 * eval.c: Include "ui-out.h" and "exceptions.h".
1706 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1707 Use value_zero if an error occurs when avoiding side effects.
1708 * varobj.c (c_value_of_root): Initialize new_val.
1709
74a44383
DJ
17102007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1711
1712 * varobj.c (varobj_list_children): Stop if the number of children is
1713 unknown.
1714 (c_number_of_children):
1715
e8d2d628
MK
17162007-01-04 Mark Kettenis <kettenis@gnu.org>
1717
1718 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1719 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1720 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1721 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1722 sizeof, instead of hardcoded constants.
1723
c941839d
DJ
17242007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1725
1726 * CONTRIBUTE: Use sourceware.org.
1727
303b6f5d 17282007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 1729
303b6f5d
DJ
1730 * buildsym.c (start_subfile): Handle producer.
1731 (record_producer): New function.
1732 * buildsym.h (struct subfile): Include producer.
1733 (record_producer): New prototype.
1734 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1735 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1736 armcc_cfa_offsets_reversed.
1737 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1738 (dwarf2_frame_find_quirks): New function.
1739 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1740 (decode_frame_entry_1): Record the CIE version. Record the
1741 augmentation. Skip armcc augmentations.
1742 * dwarf2read.c (read_file_scope): Save the producer.
1743 * symtab.h (struct symtab): Rename unused version member to
1744 producer.
2d0720d9 1745
aa79a185
DJ
17462007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1747
1748 * configure.ac (build_warnings): Use -Wall and
1749 -Wdeclaration-after-statement.
1750 * configure: Regenerated.
1751
bbec2603
VP
17522007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1753
1754 Simplify access to variours properties of child
1755 variable objects in C.
1756 * varobj.c (value_struct_element_index): New function.
1757 (c_describe_child): New function.
1758 (c_name_of_child, c_value_of_child)
1759 (c_type_of_child): Rewrite to use c_describe_child.
1760
28335dcc
VP
17612007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1762
1763 gdb/
1764 * varobj.c: Include "vec.h".
1765 (varobj_p): New typedef, declare vector of those.
1766 (struct varobj): Use vector for the 'children' member.
1767 (child_exists): Remove.
1768 (save_child_in_parent): Remove.
1769 (remove_child_from_parent): Remove.
1770 (struct varobj_child): Remove.
1771 (struct vstack): Remove.
1772 (vpush, vpop): Remove.
1773 (varobj_list_children): Adjust to work work vector.
1774 (varobj_update): Likewise. Use vectors for
1775 working stack and result.
1776 (delete_variable_1): Likewise.
1777 * Makefile.in (varobj.o): Update dependencies.
1778
b2c2bd75
VP
17792007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1780
1781 Port from Apple's version.
1782 gdb/
1783 * varobj.c (type_changeable): Rename to...
1784 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1785 (is_root_p): New function. Use it everywhere.
1786
bdfb3870
JB
17872007-01-04 Jim Blandy <jimb@codesourcery.com>
1788
1789 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1790 then plain 'fixup'.
1791
5d15052e
JB
17922007-01-04 Joel Brobecker <brobecker@adacore.com>
1793
1794 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1795
53103997
JB
17962007-01-04 Joel Brobecker <brobecker@adacore.com>
1797
1798 * hpread.c (hpread_type_lookup): Fix compilation failure.
1799
27fd2f50
Q
18002007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1801
1802 * NEWS: New port to S+core.
1803 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1804 Add myself.
1805
1806 * Makefile.in: Add dependencies for S+core files.
1807 * configure.tgt (score*, score-*-*): Add S+core target.
1808 * config/score/embed.mt: New file.
1809 * score-tdep.c: New file.
1810 * score-tdep.h: New file.
1811
a6cfbe68
JB
18122007-01-04 Joel Brobecker <brobecker@adacore.com>
1813
1814 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1815 the appropriate type rather than a bogus void type.
1816
67cf15b7 18172007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
1818
1819 * ada-lang.h (ada_find_printable_frame): Remove.
1820 (ada_exception_catchpoint_p, ada_decode_exception_location)
1821 (ada_decode_assert_location): Add declaration.
1822 * ada-lang.c: Add include of annotate.h and valprint.h.
1823 (exception_catchpoint_kind): New enum.
1824 (function_name_from_pc, is_known_support_routine)
1825 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1826 (ada_exception_name_addr_1, ada_exception_name_addr)
1827 (print_it_exception, print_one_exception, print_mention_exception)
1828 (print_it_catch_exception, print_one_catch_exception)
1829 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1830 (print_it_catch_exception_unhandled)
1831 (print_one_catch_exception_unhandled)
1832 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1833 (print_one_catch_assert, print_mention_catch_assert)
1834 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1835 (ada_get_next_arg, catch_ada_exception_command_split)
1836 (ada_exception_sym_name, ada_exception_sym_name)
1837 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1838 (ada_parse_catchpoint_condition, ada_exception_sal)
1839 (ada_decode_exception_location)
1840 (ada_decode_assert_location): New function.
1841 (catch_exception_unhandled_breakpoint_ops): New global variable.
1842 (catch_assert_breakpoint_ops): New global variable.
1843 * breakpoint.c: Add include of ada-lang.h.
1844 (print_one_breakpoint): Do not print the condition for Ada
1845 exception catchpoints.
1846 (create_ada_exception_breakpoint): New function.
1847 (catch_ada_exception_command, catch_assert_command): New function.
1848 (catch_command_1): Add support for the new "catch exception" and
1849 "catch assert" commands.
1850 (_initialize_breakpoint): Add help description for the new catch
1851 commands.
1852 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1853 valprint.h.
1854 (breakpoint.o): Add dependency on ada-lang.h.
1855
05cfdb42
DJ
18562007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
1857
1858 * coffread.c (cs_to_section): If bfd_section is found, always
1859 return its section index.
1860 (coff_symtab_read): Determine the minimal_symbol_type using the
1861 bfd_section flags.
1862
2e03ee74
DJ
18632007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 Daniel Jacobowitz <dan@codesourcery.com>
1865
1866 * Makefile.in (top.o): Update.
1867 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1868 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1869 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1870 New.
1871 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1872
1c63d086
MK
18732007-01-03 Mark Kettenis <kettenis@gnu.org>
1874
1875 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1876 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1877
d5d6fca5
DJ
18782007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1879
1880 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1881 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1882 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1883 greater than or equal to zero.
1884 * m2-typeprint.c (m2_array): Likewise.
1885 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1886 * gdbtypes.c (copy_type_recursive): Correct == typo.
1887 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1888 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1889 greater than zero.
1890 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1891 (default_macro_scope): Remove unused variable.
1892 * prologue-value.h (pv_area_find_reg): Don't name an argument
1893 "register".
1894 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1895 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1896 type.
1897 (cleanup_sigint_signal_handler): Remove casts.
1898 * valprint.c (val_print): Use a volatile local for the modified
1899 argument.
1900 * varobj.c (languages): Remove extra array dimension.
1901 (varobj_create): Correct access to languages array.
1902 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1903 missing braces.
1904 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1905 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1906 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1907 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1908 (mi_cmd_data_write_memory): Likewise.
1909 * signals/signals.c (target_signal_to_string): Cast to int before
1910 comparing.
1911 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1912 Update all callers.
1913
0d5de010
DJ
19142007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1915
1916 * NEWS: Mention pointer to member improvements.
1917 * Makefile.in (gnu-v3-abi.o): Delete special rule.
1918 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1919 * ada-valprint.c (ada_print_scalar): Update for new type codes.
1920 * c-typeprint.c (c_print_type): Update for new type codes.
1921 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1922 (c_type_print_base): Likewise.
1923 (c_type_print_args): Rewrite.
1924 * c-valprint.c (c_val_print): Update for new type codes. Remove
1925 support for references to members. Treat methods like functions.
1926 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1927 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1928 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1929 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1930 (struct cp_abi_ops): Add corresponding members.
1931 * cp-valprint.c (cp_print_class_method): Delete.
1932 (cp_find_class_member): New function.
1933 (cp_print_class_member): Use it. Simplify support for bogus
1934 member pointers.
1935 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1936 lookup_methodptr_type.
1937 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1938 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1939 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
1940 pointer support.
1941 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
1942 references returned by user defined operators.
1943 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1944 (f_type_print_varspec_suffix): Remove support for member pointers.
1945 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1946 and adjusted.
1947 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1948 (lookup_methodptr_type): New.
1949 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1950 (recursive_dump_type): Update for new types.
1951 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1952 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1953 (lookup_memberptr_type, lookup_methodptr_type)
1954 (smash_to_memberptr_type): New prototypes.
1955 (smash_to_method_type): Formatting fix.
1956 (lookup_member_type, smash_to_member_type): Delete prototypes.
1957 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1958 Do not rely on debug information for the vptr or the method's
1959 enclosing type. Handle function descriptors for IA64.
1960 (gnuv3_virtual_fn_field): Rewrite using the new functions.
1961 (gnuv3_find_method_in, gnuv3_print_method_ptr)
1962 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1963 (gnuv3_method_ptr_to_value): New.
1964 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1965 * hpread.c (hpread_type_lookup): Update for new types.
1966 * infcall.c (value_arg_coerce): Likewise.
1967 * m2-typeprint.c (m2_print_type): Remove explicit support
1968 for member pointers.
1969 * m2-valprint.c (m2_val_print): Likewise.
1970 * p-typeprint.c (pascal_type_print_varspec_prefix)
1971 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1972 * p-valprint.c (pascal_val_print): Likewise.
1973 (pascal_object_print_class_method, pascal_object_print_class_member):
1974 Delete.
1975 * p-lang.h (pascal_object_print_class_method)
1976 (pascal_object_print_class_member): Delete prototypes.
1977 * stabsread.c (read_type): Update for new types.
1978 * typeprint.c (print_type_scalar): Likewise.
1979 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1980 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1981 argument. Construct a pointer to member if the address of a
1982 function or data member is requested.
1983 (value_cast_pointers): Don't modify the input value.
1984 (value_cast): Adjust pointer to member handling for new types.
1985 Allow null pointer to member constants. Don't modify the input
1986 value.
1987 (value_ind): Remove pointer to member check. Handle function
1988 descriptors for function pointers.
1989 (value_struct_elt, value_find_oload_method_list, check_field):
1990 Remove pointer to member checks.
1991 * value.c (unpack_long): Allow pointers to data members.
1992 (value_from_longest): Allow member pointers.
1993 * value.h (value_aggregate_elt): Add want_address.
1994 * varobj.c (c_variable_editable): Remove check for members.
1995 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1996 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1997 in virtual tables.
1998 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1999 * c-lang.h (cp_print_class_method): Delete prototype.
2000 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2001 * mips-tdep.c (mips_gdbarch_init): Likewise.
2002 * gdbarch.c, gdbarch.h: Regenerated.
2003
d217aaed
MK
20042007-01-01 Mark Kettenis <kettenis@gnu.org>
2005
2006 * rs6000-tdep.c (rs6000_use_struct_convention)
2007 (rs6000_extract_return_value, rs6000_store_return_value)
2008 (rs6000_extract_struct_value_address): Remove.
2009 (rs6000_return_value): New function.
2010 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2011 store_return_value, deprecated_extract_struct_value_address and
2012 deprecated_use_struct_convention. Use rs6000_return_value
2013 instead.
2014
02296b29
NR
20152007-01-02 Nick Roberts <nickrob@snap.net.nz>
2016
2017 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2018 -display-disable, -display-enable, -display-insert and
2019 -display-list.
2020
b69733ab 20212007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
2022
2023 * breakpoint.c (remove_breakpoint): Remove dead code.
2024
20252007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
2026
2027 * varobj.c: Include block.h.
2028 (c_value_of_root): Check scope within nested statements.
2029
9f3a1602
MK
20302007-01-01 Mark Kettenis <kettenis@gnu.org>
2031
2032 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2033 regcache_cooked_write_signed instead of
2034 deprecated_write_register_bytes.
2035
12349ccd
JB
20362007-01-01 Joel Brobecker <brobecker@adacore.com>
2037
2038 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2039
8c48ebcf
JB
20402007-01-01 Joel Brobecker <brobecker@adacore.com>
2041
2042 Followed the Start of New Year Procedure:
2043 * ChangeLog-2006: New file, containing all the entries for 2006.
2044 * ChangeLog: Removed all 2006 entries, and changed the reference
2045 to the previous ChangeLog to point to ChangeLog 2006.
2046 * top.c (print_gdb_version): Update copyright year.
2047
154927ff
MK
20482007-01-01 Mark Kettenis <kettenis@gnu.org>
2049
2050 * Makefile.in (remote-sds.o): Remove.
2051 * remote-sds.c: Delete.
2052
8c48ebcf 2053For older changes see ChangeLog-2006.
c906108c
SS
2054\f
2055Local Variables:
2056mode: change-log
2057left-margin: 8
2058fill-column: 74
2059version-control: never
2060End:
This page took 0.981517 seconds and 4 git commands to generate.