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