]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* gdb_expat.h (XMLCALL): Define if not already defined.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a7d5afb
JB
12007-02-20 Joel Brobecker <brobecker@adacore.com>
2
3 * gdb_expat.h (XMLCALL): Define if not already defined.
4
81de920d
AS
52007-02-20 Andreas Schwab <schwab@suse.de>
6
7 * Makefile.in (symfile.o): Update dependencies.
8
cb5c8c39
DJ
92007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * MAINTAINERS: Disable -Werror for cris simulator. Build
12 sparc64-solaris2.10 instead of the broken sparc-elf.
13 * solib-frv.c: Include "solib.h".
14 * Makefile.in (solib-frv.o): Update.
15 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
16 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
17 (xtensa_frame_this_id, xtensa_frame_prev_register)
18 (xtensa_push_dummy_call): Use %p.
19
e6bb342a
DJ
202007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21
22 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
23 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
24 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
25 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
26 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
27 (sparc-linux-tdep.o): Update.
28
ff7a4c00
MG
292007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
30
31 * xtensa-tdep.h (xtensa_reg_mask_t): New.
32 (xtensa_mask_t): Change mask field to be a separate array.
33 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
34 (xtensa_pseudo_register_write, xtensa_unwind_pc)
35 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
36 (xtensa_breakpoint_from_pc): Remove implicit type casting.
37 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
38 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
39 (mask14, mask15): Rename to
40 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
41 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
42 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
43 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
44 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
45 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
46 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
47 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
48 (xtensa_submask14, xtensa_submask15): New.
49 (rmap): Follow strict aliasing rules doing static initialization.
50
d9cc5895
DJ
512007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
54 handling from here...
55 (tdesc_register_type): ...to here.
56 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
57 * features/arm-core.xml: Use code_ptr and data_ptr.
58
8756216b
DP
592007-02-13 Denis Pilat <denis.pilat@st.com>
60
61 * varobj.h (enum varobj_update_error): New enum.
62 * varobj.c (struct varobj_root): Add is_valid member.
63 (varobj_get_type): Check for invalid varobj.
64 (varobj_get_attributes): Likewise.
65 (variable_editable):Likewise.
66 (varobj_update): Likewise. Use varobj_update_error.
67 (new_root_variable): Set root varobj as valid by default.
68 (varobj_invalidate): New function.
69 * symfile.c (clear_symtab_users): Use varobj_invalidate.
70 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
71 Use varobj_update_error.
72
fe8e67fd
PM
732007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
74
75 Fix PR pascal/2223.
76 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
77 Pascal language marker.
78 * dwarf2read.c (set_cu_language): Likewise.
79
c44537cf
CV
802007-02-12 Corinna Vinschen <vinschen@redhat.com>
81
82 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
83 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
84 instead of target_terminal_init since inferior_ptid isn't set yet.
85
20dad8ea
PA
862007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
87
88 * MAINTAINERS (Write After Approval): Add myself.
89
4ac94eda
FF
902007-02-09 Fred Fish <fnf@specifix.com>
91
92 Based on work by Apple Computer, Inc.
93 * event-top.c (async_request_quit): Call quit() whenever either
94 quit_flag is set or immediate_quit is set.
95
b260b6c1
GDR
962007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
97
98 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
99 type to a pointer to const struct block.
100 (ada_lookup_symbol_list): Don't cast away constness when calling
101 remove_out_of_scope_renamings.
102
1032007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
104
105 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
106 address of 'filename'; it is always non null.
107
0f5d55d8
JB
1082007-02-09 Joel Brobecker <brobecker@adacore.com>
109
110 * exec.c (add_to_section_table): Do not discard empty sections.
111
fb1e4ffc
DJ
1122007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
113
114 * features/Makefile, features/arm-with-iwmmxt.xml,
115 features/gdbserver-regs.xsl, features/number-regs.xsl,
116 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
117 * regformats/arm-with-iwmmxt.dat: Generate.
118 * NEWS: Mention iWMMXt.
119
123dc839
DJ
1202007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
121
122 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
123 (xml-tdesc.o): Update.
124 * xml-support.c: Add a comment.
125 (gdb_xml_enums_boolean): New variable.
126 (gdb_xml_parse_attr_enum): Use strcasecmp.
127 * xml-support.h (gdb_xml_enums_boolean): Declare.
128 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
129 next_regnum, and current_union.
130 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
131 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
132 (field_attributes, union_children, reg_attributes, union_attributes)
133 (vector_attributes, feature_attributes, feature_children): New.
134 (target_children): Make static. Add <feature>.
135 (tdesc_elements): Make static.
136 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
137 (struct tdesc_feature, tdesc_feature_p): New types.
138 (struct target_desc): Add features member.
139 (struct tdesc_arch_data, tdesc_data): New.
140 (target_find_description): Clarify error message. Warn about
141 ignored register descriptions.
142 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
143 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
144 (tdesc_data_cleanup, tdesc_numbered_register)
145 (tdesc_numbered_register_choices, tdesc_find_register)
146 (tdesc_register_name, tdesc_register_type)
147 (tdesc_remote_register_number, tdesc_register_reggroup_p)
148 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
149 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
150 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
151 (tdesc_create_feature, tdesc_record_type): New.
152 (free_target_description): Free features.
153 (_initialize_target_descriptions): Initialize tdesc_data.
154 * arch-utils.c (default_remote_register_number): New.
155 * arch-utils.h (default_remote_register_number): New prototype.
156 * target-descriptions.h (set_tdesc_pseudo_register_name)
157 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
158 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
159 (tdesc_numbered_register, tdesc_numbered_register_choices)
160 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
161 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
162 (tdesc_create_reg): Declare.
163 * gdbarch.sh (remote_register_number): New entry.
164 * gdbarch.c, gdbarch.h: Regenerate.
165 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
166 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
167
168 * arm-tdep.c (arm_register_aliases): New.
169 (arm_register_name_strings): Rename to...
170 (arm_register_names): ...this. Make const. Delete the old version.
171 (current_option, arm_register_byte): Delete.
172 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
173 (value_of_arm_user_reg): New.
174 (arm_gdbarch_init): Verify any described registers. Call
175 tdesc_use_registers. Don't use arm_register_byte. Create aliases
176 for standard register names.
177 (_initialize_arm_tdep): Do not adjust arm_register_names.
178 * user-regs.c (struct user_reg): Add baton member.
179 (append_user_reg, user_reg_add_builtin, user_regs_init)
180 (user_reg_add, value_of_user_reg): Use a baton for user
181 register functions.
182 * std-regs.c: Update.
183 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
184 (user_reg_add): Add baton argument.
185 * NEWS: Mention target description register support.
186 * features/arm-core.xml, features/arm-fpa.xml: New.
187 * eval.c (evaluate_subexp_standard): Allow ptype $register
188 when the program is not running.
189
87604222
NR
1902007-02-09 Nick Roberts <nickrob@snap.net.nz>
191
192 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
193
ee4f0f76
DJ
1942007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
195
196 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
197 info->disassembler_options to "any".
198
7af9851d
DJ
1992007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
200
201 * varobj.c (install_new_value): Only call value_get_print_value
202 if changeable.
203
8944021f
DJ
2042007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
205
206 Reported by timeless@gmail.com:
207 * gdb/target.c (target_flash_erase): Do not return void value.
208 (target_flash_done): Likewise.
209 * gdb/cli/cli-cmds.c (source_command): Likewise.
210
2112007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 212
4ac94eda 213 Based on work by Apple Computer, Inc.
5f960e00
FF
214 * event-top.c (handle_sigint): Set quit_flag.
215 (async_request_quit): Don't set quit_flag. Avoid calling quit()
216 if quit_flag has already been reset.
217
4998c1df
DJ
2182007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * ser-mingw.c (pipe_windows_close): Move variable initialization back
221 up.
222
79da184e
FF
2232007-02-08 Fred Fish <fnf@specifix.com>
224
225 * defs.h (request_quit): Remove declaration.
226 * utils.c (request_quit): Remove definition.
227
3c77c82a
DJ
2282007-02-08 Joel Brobecker <brobecker@gnat.com>
229 Jan Kratochvil <jan.kratochvil@redhat.com>
230 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
233 (skip_prologue): Allow bl->blrl used by PIC code.
234
c1b6e682
DJ
2352007-02-08 Mark Kettenis <kettenis@gnu.org>
236 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
239 initialize tmp_obstack.
240 * p-valprint.c (pascal_object_print_value_fields)
241 (pascal_object_print_value): Likewise.
242
fe5dedf4
DJ
2432007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
244
245 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
246
3e461478
MK
2472007-02-08 Mark Kettenis <kettenis@gnu.org>
248
249 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
250 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
251
fc6e0168
DJ
2522007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
253
254 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
255 (xml_cache): New.
256 (tdesc_parse_xml): Cache expanded descriptions.
257
108546a0
DJ
2582007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
259
260 * Makefile.in (XMLFILES): New.
261 (COMMON_OBS): Add xml-builtin.o.
262 (xml-builtin.c, stamp-xml): New rules.
263 (xml-tdesc.o): Update.
264 * features/feature_to_c.sh: New file.
265 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
266 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
267 (gdb_xml_start_element): Initialize scope after possibly reallocating
268 scopes. Move cleanup later. Handle the XInclude description
269 specially.
270 (gdb_xml_end_element): Only parse the body if there is a current element.
271 Call XML_DefaultCurrent if there is no element.
272 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
273 (struct xinclude_parsing_data, xinclude_start_include)
274 (xinclude_end_include, xml_xinclude_default)
275 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
276 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
277 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
278 * xml-support.h (xml_fetch_another, xml_process_xincludes)
279 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
280 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
281 XInclude directives. Use the compiled in DTD.
282 (fetch_xml_from_file): Add baton argument. Treat it as a containing
283 directory name. Do not warn here.
284 (file_read_description_xml): Update call. Warn here instead. Pass
285 a dirname as baton.
286 (fetch_available_features_from_target): New.
287 (target_read_description_xml): Use it.
288 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
289 to handle XInclude.
290 * features/xinclude.dtd: New file.
291
b5057acd
DJ
2922007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
293
294 * linux-thread-db.c (check_for_thread_db): Return early if we have
295 no libthread_db support.
296
6a089cf2
DJ
2972007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
298
299 * mi/mi-parse.h: Include <sys/time.h>.
300
9fbcbb40
NR
3012007-02-05 Nick Roberts <nickrob@snap.net.nz>
302
303 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
304 instead of print_variable_value to print values.
305
b3d2152a
NR
3062007-02-03 Nick Roberts <nickrob@snap.net.nz>
307
308 * mi/mi-main.c: Numerous formatting changes.
309 (mi_cmd_data_write_register_values): Replace clause inadvertantly
310 removed in my previous change.
311
79f0a97a
NR
3122007-02-03 Eli Zaretskii <eliz@gnu.org>
313
314 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
315 Use 1000000L instead of 1000000.
316
95a98c01 3172007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
318
319 Based on work by Apple Computer, Inc.
320
321 * configure.ac: Test for sys/resource.h and getrusage.
322 * configure, config.in: Regenerate.
323
324 * mi/mi-main.c: Include <sys/resource.h> if present.
325 (rusage): Declare if HAVE_GETRUSAGE.
326 (current_command_ts, do_timings): New static variables.
327 (timestamp, print_diff_now, print_diff, timeval_diff):
328 New static timing functions.
329 (mi_cmd_enable_timings): New function for new MI command.
330 (captured_mi_execute_command, mi_execute_async_cli_command):
331 Call timing functions.
332
333 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
334 -enable-timings.
335
336 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
337
338 * mi/mi-parse.h: (mi_timestamp): New structure.
339 (mi_parse): Add mi_timestamp* member.
340
99b3d574
DP
3412007-02-02 Denis Pilat <denis.pilat@st.com>
342
343 * thread.c (make_cleanup_restore_current_thread): New function.
344 (info_threads_command): Use of make_cleanup_restore_current_thread
345 to restore the current thread and the selected frame.
346 (restore_selected_frame): New function.
347 (struct current_thread_cleanup): Add frame_id field.
348 (do_restore_current_thread_cleanup): Add restoring of the selected
349 frame.
350 (make_cleanup_restore_current_thread): Likewise.
351 (thread_apply_all_command): backup the selected frame while
352 entering the function and restore it at exit.
353 (thread_apply_command): Likewise.
354
d3c598de
DP
3552007-02-02 Denis Pilat <denis.pilat@st.com>
356
357 * MAINTAINERS (Write After Approval): Add myself to the list.
358
b69733ab 3592007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
360
361 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
362 (m32r_store_register): Ditto.
363
b69733ab 3642007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
365
366 * ser-mingw.c (pipe_windows_open)
367 (pipe_windows_read, pipe_windows_write): Declare
368 variables at the top of the function.
369
8da61cc4
DJ
3702007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
371
372 * doublest.c (floatformat_from_length): Use the right element from
373 gdbarch floatformats.
374 (floatformat_from_type, extract_typed_floating)
375 (store_typed_floating): Likewise.
376 * doublest.h: Remove declarations for undefined floatformat arrays.
377 * gdbarch.sh (float_format, double_format, long_double_format): Change
378 to pairs.
379 (pformat): Update for pairs.
380 * gdbarch.c, gdbarch.h: Regenerated.
381 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
382 (floatformats_ieee_double_littlebyte_bigword)
383 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
384 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
385 (floatformats_vax_d): New variables.
386 (builtin_type_ieee_single, builtin_type_ieee_double)
387 (builtin_type_arm_ext, builtin_type_ia64_spill)
388 (builtin_type_ia64_quad): Replace arrays with individual types.
389 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
390 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
391 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
392 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
393 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
394 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
395 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
396 unused and endian-specific types.
397 (recursive_dump_type): Update for floatformat pairs.
398 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
399 (build_gdbtypes): Use build_flt.
400 (_initialize_gdbtypes): Update set of initialized types.
401 * gdbtypes.h: Update declarations to match gdbtypes.c.
402 (struct main_type): Store a pointer to two floatformats.
403 * arch-utils.c (default_float_format, default_double_format): Delete.
404 * arch-utils.h (default_float_format, default_double_format): Delete.
405
406 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
407 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
408 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
409 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
410 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
411
87680a14
JB
4122007-01-29 Joel Brobecker <brobecker@adacore.com>
413
414 * target.c (maintenance_print_target_stack): New function.
415 (initialize_targets): Add new "maintenance print target-stack"
416 command.
417
1c3d648d
MK
4182007-01-28 Mark Kettenis <kettenis@gnu.org>
419
420 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
421
607269ae
DJ
4222007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
423
424 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
425 (struct dwarf2_loclist_baton): Likewise.
426
40c03ae8
EZ
4272007-01-27 Eli Zaretskii <eliz@gnu.org>
428
429 * cli/cli-script.c: Include breakpoint.h.
430 (build_command_line): Require arguments only for if and while
431 commands.
432 (get_command_line, execute_user_command, execute_control_command):
433 Fix wording of warning messages.
434 (print_command_lines): Print breakpoint commands.
435 (execute_control_command): Call commands_from_control_command to
436 handle the `commands' command inside a body of a flow-control
437 command.
438 (read_next_line): Recognize the `commands' command and build a
439 command line structure for it.
440 (recurse_read_control_structure, read_command_lines): Handle
441 `commands' similarly to `if' and `while'.
442
443 * breakpoint.c (get_number_trailer): Document the special meaning
444 of NULL as the first argument PP.
445 (commands_from_control_command): New function.
446
447 * breakpoint.h (commands_from_control_command): Add prototype.
448
449 * defs.h (commands_control): New enumerated value for enum
450 command_control_type.
451
4b9eee8c
JB
4522007-01-26 Joel Brobecker <brobecker@adacore.com>
453
454 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
455 (ada_exception_sal): Update accordingly.
456
e1f48ead
JK
4572007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
458
459 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
460 * NEWS: Describe CHAR array vs. string identifcation rules.
461
e150acc7
PB
4622007-01-25 Paul Brook <paul@codesourcery.com>
463
464 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
465
10fb19b6
JB
4662007-01-24 Jim Blandy <jimb@codesourcery.com>
467
468 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
469 expression is empty, bother to return the 'optimized out' value we
470 construct. (Thanks to Carl Burch.)
471
85d93f1d
VP
4722007-01-24 Vladimir Prus <vladimir@codesourcery.com>
473
474 * varobj.c (c_value_of_root, c_value_of_child)
475 (cplus_describe_child): Don't call release_value.
476
fcbd8a5c
TS
4772007-01-24 Thiemo Seufer <ths@mips.com>
478
479 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
480 initialization.
481
2024f65a
VP
4822007-01-24 Vladimir Prus <vladimir@codesourcery.com>
483
484 Refactor getting children name, value and type access
485 for varobjs in C++.
486 * varobj.c (get_type_deref): Remove.
487 (adjust_value_for_child_access): New.
488 (c_number_of_children): Use the above.
489 (c_describe_child): Likewise.
490 (enum accessibility): New.
491 (match_accessibility): New function.
492 (cplus_describe_child): New function.
493 (cplus_name_of_child, cplus_value_of_child)
494 (cplus_type_of_child): Reimplement in terms
495 of cplus_describe_child.
496 (cplus_number_of_children): Use
497 adjust_value_for_child_access.
498
6e2a9270
VP
4992007-01-24 Vladimir Prus <vladimir@codesourcery.com>
500
501 Fix computation of the 'editable' attribute and
502 value changeability for for references.
503 * varobj.c (get_value_type): New function.
504 (c_variable_editable): Use get_value_type.
505 (varobj_value_is_changeable): Likewise.
506
56163ce1
JB
5072007-01-24 Joel Brobecker <brobecker@adacore.com>
508
509 * source.c (find_and_open_source): Try rewriting the source
510 path inside filename if dirname is NULL.
511
8c6860bb
JB
5122007-01-24 Joel Brobecker <brobecker@adacore.com>
513
514 * dwarf2read.c (add_partial_symbol): Create an extra partial
515 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
516 (new_symbol): Likewise for symbols.
517
6db6d2ca
NR
5182007-01-24 Nick Roberts <nickrob@snap.net.nz>
519
520 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
521
7d85ee02
VP
5222007-01-23 Vladimir Prus <vladimir@codesourcery.com>
523
524 * value.c (value_primitive_field): Copy the full 'location'
525 contents, instead of assuming that copying ADDRESS will
526 bring over everything in the union. Remove obsolete comment.
527
f79b9530
DJ
5282007-01-23 Masaki Muranaka <monaka@monami-software.com>
529
530 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
531 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
532 (m32c_m16c_pointer_to_address): Separate code from declarations.
533
08d8bcd7
DJ
5342007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
535
536 * target.c (update_current_target): Correct typo.
537
57fdbbbe
CV
5382007-01-22 Masaki Muranaka <monaka@monami-software.com>
539
540 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
541 declaration.
542
58894217
JK
5432007-01-11 Andrew Cagney <cagney@redhat.com>
544 Daniel Jacobowitz <dan@codesourcery.com>
545 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 * dwarf2-frame.c (execute_cfa_program): New support of
548 `DW_CFA_GNU_negative_offset_extended'.
549
9ebce043
DJ
5502007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
551
552 * NEWS: Mention flash support for "load" and new remote packets.
553
973d738b
DJ
5542007-01-21 Markus Deuling <deuling@de.ibm.com>
555
556 * breakpoint.c (delete_command): Skip redundant loop iterations.
557
7b9ee6a8
DJ
5582007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
559
560 * gdbarch.sh (register_type): Update comment.
561 * gdbarch.h: Regenerated.
562 * arch-utils.c (generic_register_size): Call register_type.
563 * ia64-tdep.c (ia64_extract_return_value): Likewise.
564 * m32c-tdep.c (check_for_saved): Likewise.
565 * mips-tdep.c (mips_print_register, print_gp_register_row)
566 (mips_print_registers_info): Likewise.
567 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
568 Likewise.
569 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
570 (sh64_do_register, sh64_print_register)
571 (sh64_media_print_registers_info): Likewise.
572 * tui/tui-regs.c (tui_register_format): Likewise.
573
11309657
DJ
5742007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
575
576 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
577
578 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
579 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
580 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
581 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
582 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
583 (make_symbol_completion_list): Likewise.
584
cb1df416
DJ
5852007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
586 Daniel Jacobowitz <dan@codesourcery.com>
587
588 * buildsym.c (end_symtab): Use preallocated symtab if available.
589 Fill in SYMBOL_SYMTAB.
590 * buildsym.h (struct subfile): Add symtab member.
591 * dwarf2read.c (struct dwarf2_cu): Add line_header.
592 (struct file_entry): Add symtab.
593 (free_cu_line_header): New function.
594 (read_file_scope): Use it. Save line_header in the cu. Process
595 lines before DIEs.
596 (add_file_name): Initialize new symtab member.
597 (dwarf_decode_lines): Create symtabs for included files.
598 (new_symbol): Set SYMBOL_SYMTAB.
599 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
600 (search_symbols): Likewise.
601 * symtab.h (struct symbol): Add symtab member.
602 (SYMBOL_SYMTAB): Define.
603
727da900
DJ
6042007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
605
606 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
607
7b6b9e83
DJ
6082007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
609
610 * arch-utils.c (show_endian): Correct reversed condition.
611
e767400c
JK
6122007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
613
614 * MAINTAINERS (Write After Approval): Add myself.
615
b20d8971
VP
6162007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
617 Vladimir Prus <vladimir@codesourcery.com>
618
619 Fix 'selected frame' varobjs.
620 * varobj.c (struct varobj): Remove the error field.
621 (varobj_set_value): Don't check var->error.
622 (install_new_value): Don't set var->error.
623 (varobj_update): Always pass the new value
624 of the root via install_new_value.
625 (create_child): Don't set error field.
626 (new_variable): Likewise.
627 (c_value_of_root): Always reevaluate the value
628 of selected frame varobjs in the selected frame.
629 Don't call reinit_frame_cache.
630
7ef2b397
JB
6312007-01-15 Joel Brobecker <brobecker@adacore.com>
632
633 * source.c (_initialize_source): Improve the help text of
634 the substitute-path commands.
635
1208538e
MK
6362007-01-14 Mark Kettenis <kettenis@gnu.org>
637
638 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
639 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
640 (frv_skip_prologue): Remove prototypes.
641 (frv_adjust_breakpoint_address): Renamed from
642 frv_gdbarch_adjust_breakpoint_address.
643 (frv_gdbarch_init): Adjust.
644
765f065a
MK
6452007-01-13 Mark Kettenis <kettenis@gnu.org>
646
5e66aab2
MK
647 * gdbarch.sh (deprecated_extract_return_value)
648 (deprecated_store_return_value): Remove.
649 (extract_return_value, store_return_value): Remove default values.
650 * gdbarch.c, gdbarch.h: Regenerate.
651 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
652 (legacy_store_return_value): Remove.
653 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
654 Remove.
655
56178203
MK
656 * mi/mi-main.c: Remove obsolete comment.
657
23303b2e
MK
658 * regcache.c, regcache.h (deprecated_register_bytes)
659 (deprecated_read_register_bytes)
660 (deprecated_write_register_bytes): Remove.
661
765f065a
MK
662 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
663 Don't forget to move destination pointer.
664
610acfff
MK
6652007-01-01 Mark Kettenis <kettenis@gnu.org>
666
667 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
668
12102450
UW
6692007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
670
671 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
672 past entry function with recent newlib.
673
c8b2f53c
VP
6742007-01-11 Vladimir Prus <vladimir@codesourcery.com>
675
676 * gdb.texinfo (GDB/MI Variable Objects): Improve the
677 introduction. Specify -var-update more exactly.
678
d57df5e4
DJ
6792007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
680
681 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
682
03f597d5
JB
6832007-01-10 Jim Blandy <jimb@codesourcery.com>
684
685 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
686 the Global Maintainers' invitation to be a global maintainer.
687
fd48f117
DJ
6882007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
689
690 * infrun.c (singlestep_pc): New variable.
691 (resume): Set singlestep_pc.
692 (context_switch): Add a debugging message. Flush the frame cache.
693 (handle_inferior_event): Add debugging messages. Handle thread
694 hops when a software single step has completed. Let context_switch
695 handle flushing the frame cache.
696
23181151
DJ
6972007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
698
699 * NEWS: Mention target descriptions, "set tdesc filename",
700 "unset tdesc filename", "show tdesc filename", and
701 qXfer:features:read.
702 * arch-utils.c (choose_architecture_for_target): New function.
703 (gdbarch_info_fill): Call it.
704 * target-descriptions.c (struct property): Make members non-const.
705 (struct target_desc): Add arch member.
706 (target_description_filename): New variable.
707 (target_find_description): Try via XML first.
708 (tdesc_architecture): New.
709 (free_target_description, make_cleanup_free_target_description): New.
710 (set_tdesc_property): Call xstrdup.
711 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
712 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
713 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
714 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
715 * target-descriptions.h (tdesc_architecture)
716 (make_cleanup_free_target_description, set_tdesc_architecture): New
717 prototypes.
718 * Makefile.in (SFILES): Add xml-tdesc.c.
719 (COMMON_OBS): Add xml-tdesc.o.
720 (target-descriptions.o): Update.
721 (xml-tdesc.o): New rule.
722 * xml-tdesc.c, xml-tdesc.h: New files.
723 * remote.c (PACKET_qXfer_features): New enum.
724 (remote_protocol_features): Add qXfer:features:read.
725 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
726 (_initialize_remote): Register qXfer:features:read.
727 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
728 * features/gdb-target.dtd: New file.
729
3e9cb5f4
DJ
7302007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
731
732 * copyright.sh: Clarify error.
733
818f79f6
DJ
7342007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
735
736 * symtab.c (matching_bfd_sections): Fix VMA matching for
737 prelinked objects.
738
f7a6bb70
DJ
7392007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
740
741 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
742 nested symbols.
743
20ac0504
DJ
7442007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
745
746 Updated copyright notices for most files.
747
85bb0718
DJ
7482007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
749
750 * copyright.sh (prunes): Add step-line.inp and step-line.c.
751
aa28a74e
DJ
7522007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
753
754 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
755 exec_prefix.
756 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
757 '${prefix}'.
758 * configure, config.in: Regenerate.
759 * defs.h (debug_file_directory): Declare.
760 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
761 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
762 relocate it if DEBUGDIR_RELOCATABLE.
763 * symfile.c (debug_file_directory): Make non-static.
764 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
765 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
766 (_initialize_symfile): Don't initialize debug_file_directory here.
767
1cfd2c3e
JB
7682007-01-09 Jim Blandy <jimb@codesourcery.com>
769
770 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
771 statements.
772
5efde112
DJ
7732007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
774
775 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
776 frame_unwind_register to recurse.
777 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
778 (alpha_heuristic_frame_prev_register): Likewise.
779 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
780 * m32c-tdep.c (m32c_prev_register): Likewise.
781 * frame.c (frame_register_unwind_location): Remove FIXME.
782
4de1f557
DJ
7832007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
784 Eli Zaretskii <eliz@gnu.org>
785
786 * copyright.sh: New file.
787
ca4ca11e
DJ
7882007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
789
790 * configure.ac: Check for XML_StopParser.
791 * xml-support.c (gdb_xml_body_text): Check for an error.
792 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
793 (gdb_xml_end_element_wrapper): Likewise.
794 * config.in, configure: Regenerated.
795
57e66780
DJ
7962007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
797
798 * varobj.c (install_new_value): Always update print_value.
799 (value_get_print_value): Immediately return NULL for missing
800 values.
801
b523a1fd
JB
8022007-01-08 Jim Blandy <jimb@codesourcery.com>
803
804 * configure.ac: Tighten pattern for extracting value of
805 DEPRECATED_TM_FILE from the target makefile fragment.
806 * configure: Regenerated.
807
3d799a95
DJ
8082007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
809
810 * linux-nat.c (struct simple_pid_list): Add status.
811 (add_to_pid_list): Record the PID's status.
812 (linux_record_stopped_pid): Likewise. Make static.
813 (pull_pid_from_list): Return the saved status.
814 (linux_nat_handle_extended): Deleted.
815 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
816 Make static. Handle non-SIGSTOP for a new thread's first signal.
817 (flush_callback): Handle unexpected pending signals.
818 (linux_nat_wait): Update calls to changed functions.
819 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
820 Remove prototypes for newly static functions.
821
9acbedc0
UW
8222007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
823
824 * gdbarch.sh (value_from_register): New gdbarch function.
825 * gdbarch.c, gdbarch.h: Regenerate.
826 * findvar.c (default_value_from_register): New function.
827 (value_from_register): Use gdbarch_value_from_register.
828 * value.h (default_value_from_register): Declare.
829 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
830 spu_value_to_register): Remove.
831 (spu_value_from_register): New function.
832 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
833 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
834 Call set_gdbarch_value_from_register.
835 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
836 s390_value_to_register): Remove.
837 (s390_value_from_register): New function.
838 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
839 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
840 Call set_gdbarch_value_from_register.
841
f822c95b
DJ
8422007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
843
844 * NEWS: Add "set sysroot" and "show sysroot".
845 * solib.c (solib_absolute_prefix): Delete. Replace
846 all uses with gdb_sysroot.
847 (_initialize_solib): Add "set sysroot" and "show sysroot".
848 Make "solib-absolute-prefix" an alias to it.
849
00fa51f6
UW
8502007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
851
852 * frame.c (get_frame_register_bytes): New function.
853 (put_frame_register_bytes): Likewise.
854 * frame.h (get_frame_register_bytes): Declare.
855 (put_frame_register_bytes): Likewise.
856 * findvar.c (value_from_register): Always construct lval_register
857 values. Use get_frame_register_bytes.
858 * valops.c (value_assign): Use get_frame_register_bytes and
859 put_frame_register_bytes.
860
a95c9d06
JB
8612007-01-08 Jim Blandy <jimb@codesourcery.com>
862
863 * MAINTAINERS: Update Stan Shebs' email address.
864
4ed6b5be
JB
8652007-01-07 Joel Brobecker <brobecker@adacore.com>
866
867 * ada-lang.c (is_known_support_routine): Improve the implementation.
868
9bbc9174
JB
8692007-01-06 Joel Brobecker <brobecker@adacore.com>
870
871 * ada-lang.c: Add include of source.h.
872 (is_known_support_routine): Improve the check verifying that the file
873 associated to this frame exists.
874 * Makefile.in (ada-lang.o): Add dependency on source.h.
875
44a81774
JB
8762007-01-07 Jim Blandy <jimb@codesourcery.com>
877
878 * ax-general.c (ax_const_l): Select proper opcode for the given
879 value.
880
6fe1a487
NR
8812007-01-04 Vladimir Prus <vladimir@codesourcery.com>
882
883 * varobj.c (c_value_of_root): Don't select frame if variable
884 object is out of scope.
885
3fa6deb5
NR
8862007-01-06 Nick Roberts <nickrob@snap.net.nz>
887
888 * varobj.c (struct varobj): New member print_value.
889 (install_new_value): Compare last printed value with current one
890 instead of contents.
891 (new_variable): Initialize var->print_value to NULL.
892 (free_variable): Free var->print_value.
893 (value_get_print_value): New function derived from
894 c_value_of_variable.
895 (c_value_of_variable): Use value_get_print_value.
896
92a56b20
JB
8972007-01-05 Joel Brobecker <brobecker@adacore.com>
898
899 * i386-tdep.c (i386_analyze_stack_align): Add comment.
900
0e420bd8
JB
9012007-01-05 Joel Brobecker <brobecker@adacore.com>
902
903 * NEWS: Add entries for new catch commands.
904
b69733ab 9052007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
906
907 * dwarf2read.c (partial_die_info): Add field has_byte_size.
908 (add_partial_symbol): Correct identification of external references.
909 (process_structure_scope): Likewise.
910 (read_partial_die): Handle DW_AT_byte_size attribute.
911
9122007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
913
914 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
915
8e38af42
NR
9162007-01-05 Nick Roberts <nickrob@snap.net.nz>
917
918 * varobj.c (get_type_deref): Fix variable objects for references to
919 pointers.
920
d1c79ecd
DJ
9212007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
922
923 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
924 with no symbols.
925
e776119f
DJ
9262007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
927
928 * memory-map.c (struct_memory_map_parsing_data): Remove most
929 members. Make property_name an array.
930 (free_memory_map_parsing_data, memory_map_start_element)
931 (memory_map_end_element, memory_map_character_data): Delete.
932 (memory_map_start_memory, memory_map_end_memory)
933 (memory_map_start_property, memory_map_end_property): New functions.
934 (property_attributes, memory_children, memory_type_enum)
935 (memory_attributes, memory_map_children, memory_map_elements): New.
936 (parse_memory_map): Rewrite.
937 * xml-support.c (debug_xml): New.
938 (xml_get_required_attribute, xml_get_integer_attribute)
939 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
940 Delete.
941 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
942 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
943 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
944 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
945 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
946 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
947 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
948 New.
949 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
950 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
951 (enum gdb_xml_element_flag, struct gdb_xml_element)
952 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
953 (struct gdb_xml_enum): New.
954 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
955 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
956 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
957 (xml_get_required_attribute, xml_get_integer_attribute)
958 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
959 * Makefile.in (xml_support_h, xml-support.o): Update.
960
5e572bb4
DJ
9612007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
962
963 * Makefile.in (eval.o): Update dependencies.
964 * eval.c: Include "ui-out.h" and "exceptions.h".
965 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
966 Use value_zero if an error occurs when avoiding side effects.
967 * varobj.c (c_value_of_root): Initialize new_val.
968
74a44383
DJ
9692007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
970
971 * varobj.c (varobj_list_children): Stop if the number of children is
972 unknown.
973 (c_number_of_children):
974
e8d2d628
MK
9752007-01-04 Mark Kettenis <kettenis@gnu.org>
976
977 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
978 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
979 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
980 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
981 sizeof, instead of hardcoded constants.
982
c941839d
DJ
9832007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
984
985 * CONTRIBUTE: Use sourceware.org.
986
303b6f5d 9872007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 988
303b6f5d
DJ
989 * buildsym.c (start_subfile): Handle producer.
990 (record_producer): New function.
991 * buildsym.h (struct subfile): Include producer.
992 (record_producer): New prototype.
993 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
994 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
995 armcc_cfa_offsets_reversed.
996 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
997 (dwarf2_frame_find_quirks): New function.
998 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
999 (decode_frame_entry_1): Record the CIE version. Record the
1000 augmentation. Skip armcc augmentations.
1001 * dwarf2read.c (read_file_scope): Save the producer.
1002 * symtab.h (struct symtab): Rename unused version member to
1003 producer.
2d0720d9 1004
aa79a185
DJ
10052007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1006
1007 * configure.ac (build_warnings): Use -Wall and
1008 -Wdeclaration-after-statement.
1009 * configure: Regenerated.
1010
bbec2603
VP
10112007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1012
1013 Simplify access to variours properties of child
1014 variable objects in C.
1015 * varobj.c (value_struct_element_index): New function.
1016 (c_describe_child): New function.
1017 (c_name_of_child, c_value_of_child)
1018 (c_type_of_child): Rewrite to use c_describe_child.
1019
28335dcc
VP
10202007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1021
1022 gdb/
1023 * varobj.c: Include "vec.h".
1024 (varobj_p): New typedef, declare vector of those.
1025 (struct varobj): Use vector for the 'children' member.
1026 (child_exists): Remove.
1027 (save_child_in_parent): Remove.
1028 (remove_child_from_parent): Remove.
1029 (struct varobj_child): Remove.
1030 (struct vstack): Remove.
1031 (vpush, vpop): Remove.
1032 (varobj_list_children): Adjust to work work vector.
1033 (varobj_update): Likewise. Use vectors for
1034 working stack and result.
1035 (delete_variable_1): Likewise.
1036 * Makefile.in (varobj.o): Update dependencies.
1037
b2c2bd75
VP
10382007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1039
1040 Port from Apple's version.
1041 gdb/
1042 * varobj.c (type_changeable): Rename to...
1043 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1044 (is_root_p): New function. Use it everywhere.
1045
bdfb3870
JB
10462007-01-04 Jim Blandy <jimb@codesourcery.com>
1047
1048 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1049 then plain 'fixup'.
1050
5d15052e
JB
10512007-01-04 Joel Brobecker <brobecker@adacore.com>
1052
1053 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1054
53103997
JB
10552007-01-04 Joel Brobecker <brobecker@adacore.com>
1056
1057 * hpread.c (hpread_type_lookup): Fix compilation failure.
1058
27fd2f50
Q
10592007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1060
1061 * NEWS: New port to S+core.
1062 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1063 Add myself.
1064
1065 * Makefile.in: Add dependencies for S+core files.
1066 * configure.tgt (score*, score-*-*): Add S+core target.
1067 * config/score/embed.mt: New file.
1068 * score-tdep.c: New file.
1069 * score-tdep.h: New file.
1070
a6cfbe68
JB
10712007-01-04 Joel Brobecker <brobecker@adacore.com>
1072
1073 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1074 the appropriate type rather than a bogus void type.
1075
67cf15b7 10762007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
1077
1078 * ada-lang.h (ada_find_printable_frame): Remove.
1079 (ada_exception_catchpoint_p, ada_decode_exception_location)
1080 (ada_decode_assert_location): Add declaration.
1081 * ada-lang.c: Add include of annotate.h and valprint.h.
1082 (exception_catchpoint_kind): New enum.
1083 (function_name_from_pc, is_known_support_routine)
1084 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1085 (ada_exception_name_addr_1, ada_exception_name_addr)
1086 (print_it_exception, print_one_exception, print_mention_exception)
1087 (print_it_catch_exception, print_one_catch_exception)
1088 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1089 (print_it_catch_exception_unhandled)
1090 (print_one_catch_exception_unhandled)
1091 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1092 (print_one_catch_assert, print_mention_catch_assert)
1093 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1094 (ada_get_next_arg, catch_ada_exception_command_split)
1095 (ada_exception_sym_name, ada_exception_sym_name)
1096 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1097 (ada_parse_catchpoint_condition, ada_exception_sal)
1098 (ada_decode_exception_location)
1099 (ada_decode_assert_location): New function.
1100 (catch_exception_unhandled_breakpoint_ops): New global variable.
1101 (catch_assert_breakpoint_ops): New global variable.
1102 * breakpoint.c: Add include of ada-lang.h.
1103 (print_one_breakpoint): Do not print the condition for Ada
1104 exception catchpoints.
1105 (create_ada_exception_breakpoint): New function.
1106 (catch_ada_exception_command, catch_assert_command): New function.
1107 (catch_command_1): Add support for the new "catch exception" and
1108 "catch assert" commands.
1109 (_initialize_breakpoint): Add help description for the new catch
1110 commands.
1111 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1112 valprint.h.
1113 (breakpoint.o): Add dependency on ada-lang.h.
1114
05cfdb42
DJ
11152007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
1116
1117 * coffread.c (cs_to_section): If bfd_section is found, always
1118 return its section index.
1119 (coff_symtab_read): Determine the minimal_symbol_type using the
1120 bfd_section flags.
1121
2e03ee74
DJ
11222007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1123 Daniel Jacobowitz <dan@codesourcery.com>
1124
1125 * Makefile.in (top.o): Update.
1126 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1127 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1128 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1129 New.
1130 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1131
1c63d086
MK
11322007-01-03 Mark Kettenis <kettenis@gnu.org>
1133
1134 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1135 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1136
d5d6fca5
DJ
11372007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1138
1139 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1140 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1141 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1142 greater than or equal to zero.
1143 * m2-typeprint.c (m2_array): Likewise.
1144 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1145 * gdbtypes.c (copy_type_recursive): Correct == typo.
1146 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1147 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1148 greater than zero.
1149 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1150 (default_macro_scope): Remove unused variable.
1151 * prologue-value.h (pv_area_find_reg): Don't name an argument
1152 "register".
1153 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1154 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1155 type.
1156 (cleanup_sigint_signal_handler): Remove casts.
1157 * valprint.c (val_print): Use a volatile local for the modified
1158 argument.
1159 * varobj.c (languages): Remove extra array dimension.
1160 (varobj_create): Correct access to languages array.
1161 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1162 missing braces.
1163 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1164 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1165 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1166 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1167 (mi_cmd_data_write_memory): Likewise.
1168 * signals/signals.c (target_signal_to_string): Cast to int before
1169 comparing.
1170 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1171 Update all callers.
1172
0d5de010
DJ
11732007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1174
1175 * NEWS: Mention pointer to member improvements.
1176 * Makefile.in (gnu-v3-abi.o): Delete special rule.
1177 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1178 * ada-valprint.c (ada_print_scalar): Update for new type codes.
1179 * c-typeprint.c (c_print_type): Update for new type codes.
1180 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1181 (c_type_print_base): Likewise.
1182 (c_type_print_args): Rewrite.
1183 * c-valprint.c (c_val_print): Update for new type codes. Remove
1184 support for references to members. Treat methods like functions.
1185 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1186 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1187 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1188 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1189 (struct cp_abi_ops): Add corresponding members.
1190 * cp-valprint.c (cp_print_class_method): Delete.
1191 (cp_find_class_member): New function.
1192 (cp_print_class_member): Use it. Simplify support for bogus
1193 member pointers.
1194 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1195 lookup_methodptr_type.
1196 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1197 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1198 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
1199 pointer support.
1200 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
1201 references returned by user defined operators.
1202 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1203 (f_type_print_varspec_suffix): Remove support for member pointers.
1204 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1205 and adjusted.
1206 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1207 (lookup_methodptr_type): New.
1208 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1209 (recursive_dump_type): Update for new types.
1210 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1211 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1212 (lookup_memberptr_type, lookup_methodptr_type)
1213 (smash_to_memberptr_type): New prototypes.
1214 (smash_to_method_type): Formatting fix.
1215 (lookup_member_type, smash_to_member_type): Delete prototypes.
1216 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1217 Do not rely on debug information for the vptr or the method's
1218 enclosing type. Handle function descriptors for IA64.
1219 (gnuv3_virtual_fn_field): Rewrite using the new functions.
1220 (gnuv3_find_method_in, gnuv3_print_method_ptr)
1221 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1222 (gnuv3_method_ptr_to_value): New.
1223 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1224 * hpread.c (hpread_type_lookup): Update for new types.
1225 * infcall.c (value_arg_coerce): Likewise.
1226 * m2-typeprint.c (m2_print_type): Remove explicit support
1227 for member pointers.
1228 * m2-valprint.c (m2_val_print): Likewise.
1229 * p-typeprint.c (pascal_type_print_varspec_prefix)
1230 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1231 * p-valprint.c (pascal_val_print): Likewise.
1232 (pascal_object_print_class_method, pascal_object_print_class_member):
1233 Delete.
1234 * p-lang.h (pascal_object_print_class_method)
1235 (pascal_object_print_class_member): Delete prototypes.
1236 * stabsread.c (read_type): Update for new types.
1237 * typeprint.c (print_type_scalar): Likewise.
1238 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1239 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1240 argument. Construct a pointer to member if the address of a
1241 function or data member is requested.
1242 (value_cast_pointers): Don't modify the input value.
1243 (value_cast): Adjust pointer to member handling for new types.
1244 Allow null pointer to member constants. Don't modify the input
1245 value.
1246 (value_ind): Remove pointer to member check. Handle function
1247 descriptors for function pointers.
1248 (value_struct_elt, value_find_oload_method_list, check_field):
1249 Remove pointer to member checks.
1250 * value.c (unpack_long): Allow pointers to data members.
1251 (value_from_longest): Allow member pointers.
1252 * value.h (value_aggregate_elt): Add want_address.
1253 * varobj.c (c_variable_editable): Remove check for members.
1254 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1255 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1256 in virtual tables.
1257 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1258 * c-lang.h (cp_print_class_method): Delete prototype.
1259 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1260 * mips-tdep.c (mips_gdbarch_init): Likewise.
1261 * gdbarch.c, gdbarch.h: Regenerated.
1262
d217aaed
MK
12632007-01-01 Mark Kettenis <kettenis@gnu.org>
1264
1265 * rs6000-tdep.c (rs6000_use_struct_convention)
1266 (rs6000_extract_return_value, rs6000_store_return_value)
1267 (rs6000_extract_struct_value_address): Remove.
1268 (rs6000_return_value): New function.
1269 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1270 store_return_value, deprecated_extract_struct_value_address and
1271 deprecated_use_struct_convention. Use rs6000_return_value
1272 instead.
1273
02296b29
NR
12742007-01-02 Nick Roberts <nickrob@snap.net.nz>
1275
1276 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1277 -display-disable, -display-enable, -display-insert and
1278 -display-list.
1279
b69733ab 12802007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
1281
1282 * breakpoint.c (remove_breakpoint): Remove dead code.
1283
12842007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
1285
1286 * varobj.c: Include block.h.
1287 (c_value_of_root): Check scope within nested statements.
1288
9f3a1602
MK
12892007-01-01 Mark Kettenis <kettenis@gnu.org>
1290
1291 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1292 regcache_cooked_write_signed instead of
1293 deprecated_write_register_bytes.
1294
12349ccd
JB
12952007-01-01 Joel Brobecker <brobecker@adacore.com>
1296
1297 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1298
8c48ebcf
JB
12992007-01-01 Joel Brobecker <brobecker@adacore.com>
1300
1301 Followed the Start of New Year Procedure:
1302 * ChangeLog-2006: New file, containing all the entries for 2006.
1303 * ChangeLog: Removed all 2006 entries, and changed the reference
1304 to the previous ChangeLog to point to ChangeLog 2006.
1305 * top.c (print_gdb_version): Update copyright year.
1306
154927ff
MK
13072007-01-01 Mark Kettenis <kettenis@gnu.org>
1308
1309 * Makefile.in (remote-sds.o): Remove.
1310 * remote-sds.c: Delete.
1311
8c48ebcf 1312For older changes see ChangeLog-2006.
c906108c
SS
1313\f
1314Local Variables:
1315mode: change-log
1316left-margin: 8
1317fill-column: 74
1318version-control: never
1319End: