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