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