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