Regenerate Makefile.in.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
62853458
TT
12011-03-25 Tom Tromey <tromey@redhat.com>
2
3 * linespec.c (symbol_found): Restore line-based result for
4 non-LOC_LABEL symbols.
5
a7417d46
KT
62011-03-25 Kai Tietz <ktietz@redhat.com>
7
8 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
9 instead of strcmp for comparison.
10 (tui_source_is_displayed): Likewise.
11 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
12
55f1336d
TT
132011-03-24 Mark Wielaard <mjw@redhat.com>
14
15 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
16 complaint.
17 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
18 (find_partial_die_in_comp_unit): Likewise in comment.
19 (read_attribute_value): Likewise.
20 (lookup_die_type): Likewise.
21 (dwarf_form_name): Likewise.
22 (dump_die_shallow): Likewise.
23 (follow_die_ref_or_sig): Likewise.
24
9ef07c8c
TT
252011-03-24 Tom Tromey <tromey@redhat.com>
26
27 PR breakpoints/11816:
28 * linespec.c (decode_line_1): Parse `function:label' linespecs.
29 (decode_compound): Update.
30 (find_function_symbol): New function.
31 (decode_dollar): Update.
32 (decode_label): Add 'function_symbol' parameter. Handle
33 function-relative labels.
34 (decode_variable): Update.
35 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
36 not its line. Set `special_display' and canonical name for
37 labels.
38
56435ebe
TT
392011-03-24 Tom Tromey <tromey@redhat.com>
40
41 * linespec.h (struct linespec_result) <special_display>: New
42 field.
43 * breakpoint.h (struct breakpoint) <display_canonical>: New
44 field.
45 * breakpoint.c (print_breakpoint_location): Respect
46 display_canonical.
47 (create_breakpoint_sal): Add 'display_canonical' parameter.
48 (create_breakpoints_sal): Update.
49 (create_breakpoint): Update.
50
7efd8fc2
TT
512011-03-24 Tom Tromey <tromey@redhat.com>
52
53 * symtab.c (decode_line_spec): Update.
54 * linespec.c (build_canonical_line_spec): Change type of
55 'canonical'.
56 (decode_line_2, decode_line_1, decode_objc, decode_compound)
57 (find_method, decode_all_digits, decode_dollar, decode_label)
58 (symbol_found): Likewise.
59 (init_linespec_result): New function.
60 * breakpoint.c (struct captured_parse_breakpoint_args)
61 <canonical_p>: New field, replaces addr_string_p.
62 (create_breakpoints_sal): Add 'canonical' parameter, replacing
63 'addr_string'.
64 (parse_breakpoint_sals): Likewise.
65 (do_captured_parse_breakpoint): Update.
66 (create_breakpoint): Use struct linespec_result.
67 (until_break_command): Update.
68 (breakpoint_re_set_one): Update.
69 (decode_line_spec_1): Update.
70 * linespec.h (struct linespec_result): New.
71 (init_linespec_result): Declare.
72
788c8b10
PA
732011-03-23 Pedro Alves <pedro@codesourcery.com>
74
75 * regcache.c (regcache_raw_read): If the target didn't supply a
76 given raw register, mark it as unavailable.
77
0ba1096a
KT
782011-03-23 Kai Tietz <ktietz@redhat.com>
79
80 * breakpoint.c (clear_command): Use filename_cmp
81 instead of strcmp for comparison.
82 * buildsym.c (watch_main_source_file_lossage): Likewise.
83 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
84 checking just for slash.
85 * dbxread.c (read_dbx_symtab): Use lbasename instead of
86 strrchr and filename_cmp instead of strcmp for filenames.
87 (add_old_header_file): Use filename_cmp
88 instead of strcmp for comparison.
89 * exec.c (exec_set_section_address): Likewise.
90 * macrotab.c (macro_lookup_inclusion): Likewise.
91 (macro_lookup_inclusion): Likewise.
92 * elfread.c (_initialize_elfread): Likewise.
93 (elfstab_offset_sections): Likewise.
94 (elfstab_offset_sections): Use lbasename instead of
95 strrchr.
96 * mdebugread.c (parse_partial_symbols): Likewise.
97 (arse_partial_symbols): Use filename_(n)cmp instead of
98 str(n)cmp for comparison.
99 * minsyms.c (lookup_minimal_symbol): Likewise.
100 * psymtab.c (read_psymtabs_with_filename): Likewise.
101 * solib.c (solib_read_symbols): Likewise.
102 (reload_shared_libraries_1): Likewise.
103 * symmisc.c (maintenance_print_symbols): Likewise.
104 * symfile.c (separate_debug_file_exists): Likewise.
105 (reread_symbols): Likewise.
106 (find_separate_debug_file_by_debuglink): Likewise.
107 * remote-fileio.c (remote_fileio_func_rename): Likewise.
108 * source.c (add_path): Likewise.
109 * symtab.c (filename_seen): Likewise.
110 (file_matches): Likewise.
111 (print_symbol_info): Likewise.
112 (maybe_add_partial_symtab_filename): Likewise.
113 (make_source_files_completion_list): Likewise.
114 * xml-syscall.c (init_sysinfo): Likewise.
115 * windows-nat.c (_initialize_check_for_gdb_ini): Use
116 IS_DIR_SEPARATOR for checking for trailing path separator.
117
dd90784c
JK
1182011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
119
120 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
121 label abort_expression.
122 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
123 DWARF_VALUE_OPTIMIZED_OUT.
124
3167638f
JK
1252011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Code cleanup.
128 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
129 to linkage_name. Invert its value. Update the function comment.
130 (c_type_print_varspec_suffix): Invert it at the caller.
131 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
132
ce406537
PA
1332011-03-22 Pedro Alves <pedro@codesourcery.com>
134
135 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
136 errors when reading the `stop_pc'.
137 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
138 get_frame_pc.
139
da5d4055
PM
1402011-03-22 Phil Muldoon <pmuldoon@redhat.com>
141
142 * NEWS: Document gdb.Write stream keyword.
143
29e0eb9c
JK
1442011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 Revert:
147 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
148 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
149 (dwarf2_add_field): Fix new_field->accessibility for
150 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
151
05775840
PM
1522011-03-22 Phil Muldoon <pmuldoon@redhat.com>
153
154 PR python/12183
155
156 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
157 other error classes. Do not print stack trace.
158
a0cb7835
JK
1592011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
160
161 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
162 (dwarf2_add_field): Fix new_field->accessibility for
163 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
164
d19f7eee
UW
1652011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
166
167 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
168 encountering a load via a non-SP register.
169
4a2fbb50
UW
1702011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
171
172 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
173 field in returned unwinder.
174
3489610d
JB
1752012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
178
8c1a34e7
JB
1792012-03-21 Joel Brobecker <brobecker@adacore.com>
180
181 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
182 of xmalloc.
183
8fbca658
PA
1842012-03-18 Pedro Alves <pedro@codesourcery.com>
185
186 * frame.c (frame_unwind_register): Throw an error if unwinding the
187 register failed.
188 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
189 an unwind stop reason.
190 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
191 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
192 UNWIND_UNAVAILABLE>: New.
193 * inline-frame.c (inline_frame_unwind): Install
194 default_frame_unwind_stop_reason.
195 * frame-unwind.c: Include "exceptions.h".
196 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
197 (default_frame_unwind_stop_reason): New.
198 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
199 (default_frame_unwind_stop_reason): Declare.
200 (struct frame_unwind) <stop_reason>: New function pointer.
201
202 * dummy-frame.c: Install default_frame_unwind_stop_reason.
203 * dwarf2-frame.c: Include exceptions.h.
204 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
205 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
206 computing the CFA. If such an error was thrown, set
207 unavailable_retaddr.
208 (dwarf2_frame_unwind_stop_reason): New.
209 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
210 unavailable.
211 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
212 (dwarf2_signal_frame_unwind): Ditto.
213
214 * amd64-tdep.c: Include "exceptions.h".
215 (struct amd64_frame_cache): New field "base_p".
216 (amd64_init_frame_cache): Clear it.
217 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
218 Avoid reading registers with functions that throw if the register
219 is not necessary to compute the frame base.
220 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
221 swallowing NOT_AVAILABLE_ERROR.
222 (amd64_frame_unwind_stop_reason): New.
223 (amd64_frame_this_id): Don't build a frame id if the frame base
224 was unavailable.
225 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
226 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
227 base_p if the frame base was computable.
228 (amd64_sigtramp_frame_unwind_stop_reason): New.
229 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
230 frame base was unavailable.
231 (amd64_sigtramp_frame_unwind): Install
232 amd64_sigtramp_frame_unwind_stop_reason.
233 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
234 base_p if the frame base was computable.
235 (amd64_epilogue_frame_unwind_stop_reason): New.
236 (amd64_epilogue_frame_this_id): Don't build a frame id if the
237 frame base was unavailable.
238 (amd64_epilogue_frame_unwind): Install
239 amd64_epilogue_frame_unwind_stop_reason.
240 * i386-tdep.c: Include "exceptions.h".
241 (struct i386_frame_cache): New field "base_p".
242 (i386_init_frame_cache): Clear it.
243 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
244 Avoid reading registers with functions that throw if the register
245 is not necessary to compute the frame base.
246 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
247 swallowing NOT_AVAILABLE_ERROR.
248 (i386_frame_unwind_stop_reason): New.
249 (i386_frame_this_id): Don't build a frame id if the frame base was
250 unavailable.
251 (i386_frame_prev_register): Handle unavailable SP.
252 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
253 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
254 base_p if the frame base was computable.
255 (i386_epilogue_frame_unwind_stop_reason): New.
256 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
257 base was unavailable.
258 (i386_epilogue_frame_unwind): Install
259 i386_epilogue_frame_unwind_stop_reason.
260 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
261 base_p if the frame base was computable.
262 (i386_sigtramp_frame_unwind_stop_reason): New.
263 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
264 base was unavailable.
265 (i386_sigtramp_frame_unwind): Install
266 i386_sigtramp_frame_unwind_stop_reason.
267 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
268 type's size, not the register's.
269 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
270
271 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
272 default_frame_unwind_stop_reason.
273 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
274 (alpha_heuristic_frame_unwind): Ditto.
275 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
276 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
277 * avr-tdep.c (avr_frame_unwind): Ditto.
278 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
279 Ditto.
280 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
281 * frv-tdep.c (frv_frame_unwind): Ditto.
282 * h8300-tdep.c (h8300_frame_unwind): Ditto.
283 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
284 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
285 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
286 (hppa_stub_frame_unwind): Ditto.
287 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
288 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
289 (ia64_libunwind_frame_unwind)
290 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
291 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
292 * lm32-tdep.c (lm32_frame_unwind): Ditto.
293 * m32c-tdep.c (m32c_unwind): Ditto.
294 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
295 * m32r-tdep.c (m32r_frame_unwind): Ditto.
296 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
297 * m68k-tdep.c (m68k_frame_unwind): Ditto.
298 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
299 * m88k-tdep.c (m88k_frame_unwind): Ditto.
300 * mep-tdep.c (mep_frame_unwind): Ditto.
301 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
302 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
303 (mips_stub_frame_unwind): Ditto.
304 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
305 * moxie-tdep.c (moxie_frame_unwind): Ditto.
306 * mt-tdep.c (mt_frame_unwind): Ditto.
307 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
308 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
309 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
310 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
311 (s390_sigtramp_frame_unwind): Ditto.
312 * score-tdep.c (score_prologue_unwind): Ditto.
313 * sh-tdep.c (sh_frame_unwind): Ditto.
314 * sh64-tdep.c (sh64_frame_unwind): Ditto.
315 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
316 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
317 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
318 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
319 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
320 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
321 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
322 (sparc64obsd_trapframe_unwind): Ditto.
323 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
324 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
325 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
326 * v850-tdep.c (v850_frame_unwind): Ditto.
327 * vax-tdep.c (vax_frame_unwind): Ditto.
328 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
329 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
330 * xtensa-tdep.c (xtensa_unwind): Ditto.
331
f23d1b92
PA
3322011-03-18 Pedro Alves <pedro@codesourcery.com>
333
334 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
335 there's always a frame. Use get_frame_pc_if_available instead of
336 get_frame_pc, and if there's no PC available, don't look up a
337 symtab.
338
1d4f5741
PA
3392011-03-18 Pedro Alves <pedro@codesourcery.com>
340
341 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
342 unavailable PC.
343
dba09041
PA
3442011-03-18 Pedro Alves <pedro@codesourcery.com>
345
346 * tracepoint.c (set_traceframe_context): Handle unavailable PC
347 gracefully.
348
9a26e44c
PA
3492011-03-18 Pedro Alves <pedro@codesourcery.com>
350
351 * frame.h (frame_unwind_caller_pc_if_available): Declare.
352 * frame.c (frame_unwind_caller_pc_if_available): New.
353 * stack.c (frame_info): Handle unavailable PC.
354
3552011-03-18 Pedro Alves <pedro@codesourcery.com>
356
357 * frame.c (frame_unwind_pc): Rename to ...
358 (frame_unwind_pc_if_available): ... this. New `pc' output
359 parameter. Change return type to int. Gracefully handle
360 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
361 happened, or 1 otherwise.
362 (frame_unwind_pc): Reimplement on top of
363 frame_unwind_pc_if_available.
364 (get_frame_func): Rename to ...
365 (get_frame_func_if_available): New `pc' output parameter. Change
366 return type to int. Gracefully handle the PC not being available.
367 (get_frame_func): Reimplement on top of
368 get_frame_func_if_available.
369 (select_frame): Handle the PC being unavailable.
370 (get_prev_frame): Handle the PC being unavailable.
371 (get_frame_pc_if_available): New.
372 (get_frame_address_in_block_if_available): New.
373 (find_frame_sal): Handle the frame PC not being available.
374 * frame.h (get_frame_pc_if_available): Declare.
375 (get_frame_address_in_block_if_available): Declare.
376 (get_frame_func_if_available): Declare.
377 * stack.c (print_frame_info): Handle the PC being unavailable.
378 (find_frame_funname): Ditto.
379 (print_frame): Handle the PC being unavailable.
380 (get_frame_language): Ditto.
381 * blockframe.c (get_frame_block): Ditto.
382 * macroscope.c (default_macro_scope): Ditto.
383 * tui/tui-stack.c (tui_show_frame_info): Ditto.
384
3852011-03-18 Pedro Alves <pedro@codesourcery.com>
386
387 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
388 NOT_AVAILABLE_ERROR when evaluating the location expression.
389
3902011-03-18 Pedro Alves <pedro@codesourcery.com>
391
392 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
393 returning that the register piece is unavailable/optimized out.
394 (write_pieced_value): Handle get_frame_register_bytes returning
395 that the register piece is unavailable/optimized out when doing a
396 read-modify write of a bitfield.
397 * findvar.c (value_from_register): Handle get_frame_register_bytes
398 returning that the register piece is unavailable/optimized out.
399 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
400 and `unavailablep'. Throw error on bad debug info. Use
401 frame_register instead of frame_register_read, to fill in the new
402 arguments.
403 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
404 and `unavailablep'.
405 * valops.c: (value_assign): Adjust, and handle
406 get_frame_register_bytes failing.
407 * spu-tdep.c: Include exceptions.h.
408 (spu_software_single_step): Adjust, and handle
409 get_frame_register_bytes failing.
410 (spu_get_longjmp_target): Ditto.
411 * gdbarch.sh (register_to_value): Change to return int. New
412 parameters `optimizedp' and `unavailablep'.
413 * gdbarch.h, gdbarch.c: Regenerate.
414 * i386-tdep.c (i386_register_to_value): Adjust to new
415 gdbarch_register_to_value interface.
416 * i387-tdep.c (i387_register_to_value): Ditto.
417 * i387-tdep.h (i387_register_to_value): Ditto.
418 * alpha-tdep.c (alpha_register_to_value): Ditto.
419 * ia64-tdep.c (ia64_register_to_value): Ditto.
420 * m68k-tdep.c (m68k_register_to_value): Ditto.
421 * mips-tdep.c (mips_register_to_value): Ditto.
422 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
423
0fdb4f18
PA
4242011-03-18 Pedro Alves <pedro@codesourcery.com>
425
426 * findvar.c (value_of_register): Mark the value as unavailable, if
427 the register is unavailable.
428 * frame.h (frame_register_unwind): New `unavailablep' parameter.
429 (frame_register): New `unavailablep' parameter.
430 (frame_register_read): Update comment.
431 * frame.c (frame_register_unwind): New `unavailablep' parameter.
432 Set it if the register is unavailable. If the register is
433 unavailable, clear the output buffer.
434 (frame_register): New `unavailablep' parameter. Pass it down.
435 (frame_unwind_register): Adjust.
436 (put_frame_register): Adjust.
437 (frame_register_read): Adjust. Also return false if the register
438 is not available.
439 (frame_register_unwind_location): Adjust.
440 * sentinel-frame.c (sentinel_frame_prev_register): If the register
441 is unavailable, mark the value accordingly.
442 * stack.c (frame_info): Handle unavailable registers.
443
e69aa73e
PA
4442011-03-18 Pedro Alves <pedro@codesourcery.com>
445
446 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
447 simplify, using regcache_cooked_read.
448
05d1431c
PA
4492011-03-18 Pedro Alves <pedro@codesourcery.com>
450
451 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
452 (regcache_raw_read_unsigned, regcache_raw_read_signed)
453 (regcache_raw_read_unsigned, regcache_raw_read_part)
454 (regcache_cooked_read, regcache_cooked_read_signed)
455 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
456 (regcache_cooked_read_ftype): Change return to enum
457 register_status.
458 * regcache.c: Include exceptions.h
459 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
460 (do_cooked_read): Change return to enum register_status. Always
461 forward to regcache_cooked_read.
462 (regcache_raw_read): Change return to enum register_status. If
463 the register is not REG_VALID, memset the buffer. Return the
464 register's status.
465 (regcache_raw_read_signed): Handle non-REG_VALID registers and
466 return the register's status.
467 (regcache_raw_read_unsigned): Ditto.
468 (regcache_cooked_read): Change return to enum register_status.
469 Assert that with read-only regcaches, the register's status must
470 be known. If the regcache is read-only, and the register is not
471 REG_VALID, memset the buffer. Return the register's status.
472 (regcache_cooked_read_signed): Change return to enum
473 register_status. Handle non-REG_VALID registers and return the
474 register's status.
475 (regcache_cooked_read_unsigned): Change return to enum
476 register_status. Handle non-REG_VALID registers and return the
477 register's status.
478 (regcache_xfer_part, regcache_raw_read_part)
479 (regcache_cooked_read_part): Change return to enum
480 register_status. Return the register's status.
481 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
482 unavailable.
483 (regcache_dump): Handle unavailable cooked registers.
484 * frame.c (do_frame_register_read): Adjust interface to match
485 regcache_cooked_read_ftype.
486 * gdbarch.sh (pseudo_register_read): Change return to enum
487 register_status.
488 * gdbarch.h, gdbarch.c: Regenerate.
489
490 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
491 register_status.
492 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
493 register_status. If reading a raw register indicates the raw
494 register is not valid, return the raw register's status,
495 otherwise, return REG_VALID.
496 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
497 register_status. Handle non-REG_VALID raw registers and return
498 the register's status.
499 * arm-tdep.c (arm_neon_quad_read)
500 (arm_pseudo_read): Change return to enum register_status. Handle
501 non-REG_VALID raw registers and return the register's status.
502 * avr-tdep.c (avr_pseudo_register_read): Ditto.
503 * frv-tdep.c (frv_pseudo_register_read): Ditto.
504 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
505 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
506 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
507 register_status.
508 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
509 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
510 (m32c_part_write, m32c_cat_read, m32c_cat_write)
511 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
512 (m32c_pseudo_register_read): Change return to enum
513 register_status. Adjust.
514 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
515 enum register_status. Return the register's status.
516 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
517 register_status. Return the register's status.
518 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
519 * mips-tdep.c (mips_pseudo_register_read): Ditto.
520 * mt-tdep.c (mt_pseudo_register_read): Ditto.
521 * rs6000-tdep.c (move_ev_register_func): New typedef.
522 (e500_move_ev_register): Use it. Change return to enum
523 register_status. Return the register's status.
524 (do_regcache_raw_read): New function.
525 (do_regcache_raw_write): New function.
526 (e500_pseudo_register_read): Change return to enum
527 register_status. Return the register's status. Use
528 do_regcache_raw_read.
529 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
530 (dfp_pseudo_register_read): Change return to enum register_status.
531 Return the register's status.
532 (vsx_pseudo_register_read): Ditto.
533 (efpr_pseudo_register_read): Ditto.
534 (rs6000_pseudo_register_read): Ditto.
535 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
536 register_status. Return the register's status.
537 * sh64-tdep.c (pseudo_register_read_portions): New function.
538 (sh64_pseudo_register_read): Change return to enum
539 register_status. Use pseudo_register_read_portions. Return the
540 register's status.
541 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
542 register_status. Return the register's status.
543 * sh-tdep.c (pseudo_register_read_portions): New function.
544 (sh_pseudo_register_read): Change return to enum register_status.
545 Use pseudo_register_read_portions. Return the register's status.
546 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
547 enum register_status. Return the register's status.
548 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
549 * spu-tdep.c (spu_pseudo_register_read_spu)
550 (spu_pseudo_register_read): Ditto.
551 * xtensa-tdep.c (xtensa_register_read_masked)
552 (xtensa_pseudo_register_read): Ditto.
553 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
554
e10abd8f
PM
5552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
556
557 * python/py-value.c (valpy_getitem): Fix formatting of error function
558 call.
559
7ea6d463
PM
5602011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
561
562 ARI fixes: Add missing internationalization markups throughout
563 C source files.
564 * darwin-nat-info.c: Ditto.
565 * record.c: Ditto.
566 * remote.c: Ditto.
567 * mi/mi-main.c: Ditto.
568
001083c6
PM
5692011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
570
571 ARI fixes: Add missing internationalization markups throughout
572 yacc files.
573 * c-exp.y: Ditto.
574 * cp-name-parser.y: Ditto.
575 * f-exp.y: Ditto.
576 * m2-exp.y: Ditto.
577 * objc-exp.y: Ditto.
578 * p-exp.y: Ditto.
579
4f1cdeec
PM
5802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
581
582 ARI fixes: Messages should have no trailing new lines.
583 * darwin-nat.c (mach_check_error): Remove trailing new line from
584 warning function call message.
585 * record.c (bfdcore_read): Idem for error call.
586
28e698f1
PM
5872011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
588
589 * common/signals.c (target_signal_from_host): Add _ markup to error
590 function call message.
591 (target_signal_to_host): Add _ markup and remove trailing new line
592 from warning call message.
593 (target_signal_from_command): Add _ markup to error function call
594 message.
595
99c3dc11
PM
5962011-03-18 Phil Muldoon <pmuldoon@redhat.com>
597
598 PR python/12149
599
600 * python/python.c (gdbpy_write): Accept a stream argument and
601 operate to the appropriate stream.
602 (gdbpy_flush): Likewise.
603 (_initialize_python): Add stream constants.
604 (finish_python_initialization): Add GdbOutputErrorFile class.
605
c20800be
KY
6062011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
607
608 * MAINTAINERS: Add myself as a write-after-approval maintainer.
609
f4a1794a
KY
6102011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
611
612 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
613 to store_signed_integer. Add debug message when relocating CALL
614 instructions. Fix formatting of debug message.
615 * i386-tdep.c (i386_relocate_instruction): Ditto.
616
d4862372
JB
6172011-03-17 Joel Brobecker <brobecker@gnat.com>
618
619 * target.h (struct target_ops): Remove to_lookup_symbol field.
620 (target_lookup_symbol): Delete macro.
621 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
622 (update_current_target, setup_target_debug): Remove handling
623 of to_lookup_symbol target_ops field.
624 * ada-tasks.c (get_known_tasks_addr): Remove use of
625 target_lookup_symbol.
626 * coffread.c (coff_symtab_read): Likewise.
627 * dbxread.c (read_dbx_symtab): Ditto.
628
d645e32e
JB
6292011-03-17 Joel Brobecker <brobecker@gnat.com>
630
631 PR gdb/12116:
632 * configure.ac: Add getthrds declaration check.
633 * configure, config.in: Regenerate.
634 * aix-thread.c (getthrds): Declare only if not already declared
635 in procinfo.h. More declaration out of get_signaled_thread to
636 global scope.
637
29703da4
PM
6382011-03-17 Phil Muldoon <pmuldoon@redhat.com>
639
640 * python/py-symtab.c: Populate symtab_object_methods,
641 sal_object_methods.
642 (stpy_is_valid): New function.
643 (salpy_is_valid): Ditto.
644 * python/py-symbol.c: Declare symbol_object_methods. Populate.
645 (sympy_is_valid): New function.
646 * python/py-objfile.c: Declare objfile_object_methods. Populate.
647 (objfpy_is_valid): New function.
648 * python/py-inferior.c: Populate inferior_object_methods.
649 (infpy_is_valid): New function.
650 * python/py-infthread.c: Populate thread_object_methods.
651 (thpy_is_valid): New function.
652 * python/py-block.c: Declare block_object_methods. Populate. Declare
653 block_iterator_object_methods. Populate.
654 (blpy_is_valid): New function.
655 (blpy_iter_is_valid): Ditto.
656
c00f8484
KS
6572011-03-16 Keith Seitz <keiths@redhat.com>
658
659 * linespec.c (find_methods): Canonicalize NAME before looking
660 up the symbol.
661 (name_end): New function.
662 (keep_name_info): New function.
663 (decode_line_1): Use keep_name_info.
664 (decode_compound): Likewise.
665 * cli/cli-utils.h (remove_trailing_whitespace): New function.
666 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
667
668 PR c++/12273
669 * linespec.c (locate_first_half): Keep overload information, too.
670 (decode_compound): Use a string to represent break characters
671 to escape the loop.
672 If P points to a break character, do not increment it.
673 For C++ and Java, keep overload information and relevant keywords.
674 If we cannot find a symbol, search the minimal symbols.
675
676 PR c++/11734
677 * linespec.c (decode_compound): Rename SAVED_ARG to
678 THE_REAL_SAVED_ARG.
679 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
680 single-quotes.
681 Pass a valid block to lookup_symbol.
682 (lookup_prefix_sym): Likewise.
683 (find_method): Construct search name based on SYM_CLASS instead
684 of SAVED_ARG.
685 * psymtab.c (lookup_partial_symbol): Add language parameter.
686 (lookup_symbol_aux_psymtabs): Likewise.
687 Don't assume that the psymtab we found was the right one. Search
688 for the desired symbol in the symtab to be certain.
689 (psymtab_search_name): New function.
690 (lookup_partial_symbol): Use psymtab_search_name.
691 Add language parameter.
692 (read_symtabs_for_function): Add language parameter and pass to
693 lookup_partial_symbol.
694 (find_symbol_file_from_partial): Likewise.
695
c91513d8
PP
6962011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
697
698 PR gdb/12528
699 * dwarf2read.c (noop_record_line): New function.
700 (dwarf_decode_lines): Ignore line tables for GCd functions.
701
b37520b6
PM
7022011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
703
704 Fix ARI warnings about new lines at the end of messages, which
705 are unneeded as there is a new line added at the end of the message
706 automatically.
707 * darwin-nat.c (darwin_stop_inferior): Ditto.
708 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
709 * dfp.c (decimal_to_number): Ditto.
710 * exec.c (print_section_info): Ditto.
711 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
712 * osdata.c (get_osdata): Ditto.
713 * record.c (bfdcore_write): Ditto.
714 * remote-mips.c (mips_readchar): Ditto.
715 * remote.c (read_ptid): Ditto.
716 * ser-mingw.c (ser_windows_raw): Ditto.
717 * tracepoint.c (add_local_symbols): Ditto.
718 * windows-nat.c (fake_create_process): Ditto.
719
b08ee6a2
TT
7202011-03-16 Tom Tromey <tromey@redhat.com>
721
722 * tracepoint.c (stop_tracing): Don't declare.
723 * event-top.c (after_char_processing_hook): Add `(void)'.
724
9a6f1302
PM
7252011-03-16 Phil Muldoon <pmuldoon@redhat.com>
726
727 * NEWS: Add Parameter sub-classing description.
728
7ceb86b1
KT
7292011-03-16 Kai Tietz <ktietz@redhat.com>
730
731 * MAINTAINERS: Update my e-mail address.
732
efeff6cf
AT
7332011-03-15 Andreas Tobler <andreast@fgznet.ch>
734
735 * MAINTAINERS: Add myself for write after approval privileges.
736
681c238c
MS
7372011-03-15 Michael Snyder <msnyder@vmware.com>
738
f3df5b08
MS
739 * frame.c (find_frame_sal): Assert sym is not null.
740
13f6513c
MS
741 * dbxread.c (process_one_symbol): Assert 'name' is not null.
742
50412521
MS
743 * objc-lang.c (selectors_info): Check strchr for null result.
744
681c238c
MS
745 * stabsread.c (define_symbol): Guard against bad stabstring input.
746
6ced1581
PM
7472011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
748
749 Remove trailing spaces and tabulations from pascal language
750 support sources.
751 p-exp.y: Ditto.
752 p-lang.c: Ditto.
753 p-lang.h: Ditto.
754 p-valprint.c: Ditto.
755
9373cf26
JK
7562011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
759 than LOW. Comment it.
760 (read_partial_die): Call complaint for inappropriate zero LOWPC or
761 HIGHPC not strictly higher than LOWPC.
762
9a1edae6
PM
7632011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
764
765 Fix formatting of function declarations returning a pointer in
766 previous commit.
767 * varobj.c (varobj_add_child): Ditto.
768 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
769 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
770
24e9cda0
UW
7712011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
772
773 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
774 for the "generic" vector ABI used with GCC 4.3 and later.
775 (ppc64_sysv_abi_return_value): Likewise.
776
7772011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
778
779 * infcall.c (call_function_by_hand): Function return value is
780 always a non_lval, even when using struct_return.
781
c9174737
PA
7822011-03-15 Pedro Alves <pedro@codesourcery.com>
783
784 * printcmd.c (ALL_DISPLAYS_SAFE): New.
785 (map_display_numbers): New.
786 (do_delete_display): New.
787 (undisplay_command): Use map_display_numbers.
788 (do_enable_disable_display): New.
789 (enable_disable_display_command): New function.
790 (enable_display): Delete.
791 (enable_display_command): New.
792 (disable_display_command): Reimplement.
793 (_initialize_printcmd): Adjust "enable display" command to use
794 `enable_display_command' as callback.
795
350c6c65
PM
7962011-03-14 Phil Muldoon <pmuldoon@redhat.com>
797
798 * NEWS: Add Python breakpoint 'stop' operation.
799
824446ad
PM
8002011-03-14 Phil Muldoon <pmuldoon@redhat.com>
801
802 * NEWS: Delete duplicate entry. Fix typo.
803
2021ad3a
PM
8042011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
805
806 Fix ARI warning about function names in first column.
807 Put prototype declaration on same line as return type.
808 * objc-exp.y: Ditto.
809 * p-exp.y: Ditto.
810 * python/py-stopevent.h: Ditto.
811 For long function names, split parameters to
812 allow function name on same line as return type.
813 * solib-pa64.c: Ditto.
814 * varobj.c: Ditto.
815 * varobj.h: Ditto.
816 For long function declaration, use single line.
817 * hppa-tdep.h: Ditto.
818 * inferior.h: Ditto.
819
7371cf6d
PM
8202011-03-14 Phil Muldoon <pmuldoon@redhat.com>
821
822 * python/python.h: Declare gdbpy_should_stop and
823 gdbpy_breakpoint_has_py_cond.
824 * python/python.c: Add python.h to includes. Remove python.h from
825 HAVE_PYTHON definition
826 (gdbpy_should_stop): New dummy function.
827 (gdbpy_breakpoint_has_py_cond): New dummy function.
828 * python/py-breakpoint.c (bppy_init): Rewrite to allow
829 sub-classing capabilities.
830 (gdbpy_should_stop): New function.
831 (gdbpy_breakpoint_has_py_cond): New function.
832 (local_setattro): New function.
833 * breakpoint.c (condition_command): Add check for Python 'stop'
834 operation.
835 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
836 operation function as part of stop/continue tests.
837
37b50a69
TT
8382011-03-14 Tom Tromey <tromey@redhat.com>
839
840 PR gdb/12576:
841 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
842 (needs_frame_dwarf_call): Likewise.
843
eeae04df
PM
8442011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
845
846 Fix ARI warning about functions without parameters that do not
847 use (void).
848 * breakpoint.c (all_tracepoints): Replace () by (void).
849 * f-exp.y (match_string_literal): Ditto.
850 (yylex): Ditto.
851 * m2-exp.y (yylex): Ditto.
852 * mep-tdep.c (current_me_module): Ditto.
853 (current_options): Ditto.
854 (current_cop_data_bus_width): Ditto.
855 (current_cr_names): Ditto.
856 (current_cr_is_float): Ditto.
857 (current_ccr_names): Ditto.
858 * objc-exp.y (yylex): Ditto.
859 * p-exp.y (yylex): Ditto.
860 * remote.c (send_interrupt_sequence): Ditto.
861 * tracepoint.c (current_trace_status): Ditto.
862 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
863 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
864
6dc3565d
MS
8652011-03-11 Michael Snyder <msnyder@vmware.com>
866
1427fe5e
MS
867 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
868 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
869 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
870 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
871 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
872
60bc018f
MS
873 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
874 (delete_async_event_handler): Ditto.
875
f3be5b64
MS
876 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
877
4c2d5724
MS
878 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
879
6dc3565d
MS
880 * top.c (set_verbose): Assert showcmd was found.
881
4e6ca6d5
MG
8822011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
883
884 * xtensa-tdep.c (warning_once): Correct style issues.
885
815a83e4
YQ
8862011-03-11 Yao Qi <yao@codesourcery.com>
887
888 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
889
f2eb0bc8
AS
8902011-03-11 Andreas Schwab <schwab@redhat.com>
891
892 * common/aclocal.m4: Remove.
893
b801de47
MG
8942011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
895
896 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
897 (xtensa_write_register, xtensa_read_register): Likewise.
898 (xtensa_hextochar): Removed.
899 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
900
dbab50de
MG
9012011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
902
903 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 904 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
905 (xtensa_alloc_frame_cache): Add initialization for new fields.
906 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
907 (warning_once): New function.
908 (xtensa_insn_kind): New item c0opc_and.
909 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
910 (call0_track_op): Change arguments. New local variable litbase.
911 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
912 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
913 in the prologue.
dbab50de 914 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 915 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
916 Add the variety of updates to handle extended prologues, which now can
917 conduct dynamic stack adjustments.
918 (call0_frame_cache): Likewise.
919 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
920 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
921
b2c04452
MS
9222011-03-10 Michael Snyder <msnyder@vmware.com>
923
f8f67713
MS
924 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
925 (cmd_qtframe): Ditto.
926 (cmd_qtbuffer): Ditto.
927 (cmd_bigqtbuffer): Ditto.
928
197f0a60
TT
9292011-03-10 Tom Tromey <tromey@redhat.com>
930
931 * tracepoint.c (trace_actions_command): Update.
932 * thread.c (thread_apply_command): Update.
933 * reverse.c (delete_bookmark_command): Update.
934 (bookmarks_info): Update.
935 * printcmd.c (undisplay_command): Update.
936 * memattr.c (mem_enable_command): Update.
937 (mem_disable_command): Update.
938 (mem_delete_command): Update.
939 * inferior.c (detach_inferior_command): Update.
940 (kill_inferior_command): Update.
941 (remove_inferior_command): Update.
942 * cli/cli-utils.h (struct get_number_or_range_state): New.
943 (init_number_or_range): Declare.
944 (get_number_or_range): Update.
945 * cli/cli-utils.c (init_number_or_range): New function.
946 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
947 static variables.
948 (number_is_in_list): Update.
949 * breakpoint.h (get_tracepoint_by_number): Update.
950 * breakpoint.c (map_breakpoint_numbers): Update for change to
951 get_number_or_range.
952 (find_location_by_number): Use get_number, not
953 get_number_or_range.
954 (trace_pass_set_count): New function.
955 (trace_pass_command): Update for change to get_number_or_range.
956 Rework loop logic.
957 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
958 'state' parameter.
959
ecec24e6
PM
9602011-03-10 Phil Muldoon <pmuldoon@redhat.com>
961
962 * python/py-param.c (add_setshow_generic): Add set/show callback
963 parameters. Register Python object context.
964 (get_show_value): New function.
965 (get_set_value): New function.
966 (call_doc_function): New function.
967 (get_doc_string): Move behind get_show_value/get_set_value.
968
6d6c6b1f
JK
9692011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
970
971 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
972
68d6df83
MG
9732011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
974
dbab50de 975 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
976 (xtensa_write_register): Likewise.
977 (xtensa_hextochar): Add comment and update to match coding conventions.
978 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
979 (execute_l32e, execute_s32e, execute_code): Update comments.
980 (xtensa_exception_handler_t): Update to match coding conventions.
981 (xtensa_insn_kind): Likewise.
982
85c9d6a6
MS
9832011-03-09 Michael Snyder <msnyder@vmware.com>
984
985 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
986
91495617
PA
9872011-03-09 Pedro Alves <pedro@codesourcery.com>
988
989 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
990
eb8c0621
TT
9912011-03-09 Tom Tromey <tromey@redhat.com>
992
993 * thread.c (restore_selected_frame): Handle frame_level == -1.
994 (make_cleanup_restore_current_thread): Use
995 get_selected_frame_if_set.
996 * frame.h (get_selected_frame_if_set): Declare.
997 * frame.c (get_selected_frame_if_set): New function.
998
9f37bbcc
PA
9992011-03-09 Pedro Alves <pedro@codesourcery.com>
1000
1001 * cli/cli-cmds.c (shell_escape): Use lbasename.
1002 * coffread.c (coff_start_symtab): Constify parameter.
1003 (complete_symtab): Constify `name' parameter.
1004 (coff_symtab_read): Constify `filestring' local.
1005 (coff_getfilename): Constify return and `result' local.
1006 Use lbasename.
1007 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1008 * linux-fork.c (info_checkpoints_command): Use lbasename.
1009 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1010 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1011 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1012 * procfs.c (procfs_make_note_section): Use lbasename.
1013 * tui/tui-io.c (printable_part): Constity return and parameter.
1014 Use lbasename.
1015 (print_filename): Constify parameters, and local `s'.
1016 (tui_rl_display_match_list): Constify local `temp'.
1017
f8de3c55
JK
10182011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1019
1020 Revert:
1021 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1022 Fix DWARF-3+ DW_AT_accessibility default assumption.
1023 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1024 cu->header.version >= 3.
1025
d9837b00
YQ
10262011-03-09 Yao Qi <yao@codesourcery.com>
1027
1028 * common/Makefile.in: Remove.
1029 * common/configure: Remove.
1030 * common/configure.ac: Remove.
1031
e637a4f5
YQ
10322011-03-09 Yao Qi <yao@codesourcery.com>
1033
1034 Revert:
1035 2011-02-11 Yao Qi <yao@codesourcery.com>
1036
1037 * common/Makefile.in: Add copyright header.
1038
1039 2011-02-11 Yao Qi <yao@codesourcery.com>
1040
1041 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1042 libcommon.a.
1043 * configure.ac: Add common to sub dir.
1044 * configure: Regenerate.
1045
f976a05d
MG
10462011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1047
1048 * xtensa-tdep.c (call0_ret): New function.
1049 (xtensa_skip_prologue): Speed up analysis.
1050
57041825
MG
10512011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1052
1053 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1054 while executing MI command -data-list-changed-registers.
1055
08b9c608
MG
10562011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1057
1058 * xtensa-tdep.c (xtensa_read_register): New function.
1059 (xtensa_write_register): New function.
1060 (xtensa_find_register_by_name): New function.
1061 (xtensa_windowed_frame_cache): Update comments in type description.
1062 (xtensa_frame_cache): Likewise.
1063 (xtensa_window_interrupt_insn): New function.
1064 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1065 (xtensa_insn_kind): Add new instructions.
1066 (rwx_special_register): New function.
1067 (call0_classify_opcode): Add new instructions to the analysis.
1068 (a0_saved, a7_saved, a11_saved): New variables.
1069 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1070 (execute_l32e): New function.
1071 (execute_s32e): New function.
1072 (xtensa_exception_handler_t): New type.
1073 (execute_code): New function.
1074 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1075 analysis for Xtensa Window Exception handlers.
1076
4d1acb11
MG
10772011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1078
98689b25
MG
1079 * xtensa-tdep.c (TX_PS): New.
1080 (windowing_enabled): Update to count for Call0 ABI.
1081 (xtensa_hextochar): New.
1082 (xtensa_init_reggroups): Make algorithm generic.
1083 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1084
10852011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1086
1087 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 1088
d3f323f3
MS
10892011-03-08 Michael Snyder <msnyder@vmware.com>
1090
3dcabaa8
MS
1091 * i386-tdep.c (i386_follow_jump): Check return value of
1092 target_read_memory.
1093 (i386_analyze_struct_return): Ditto.
1094 (i386_skip_probe): Ditto.
1095 (i386_match_insn): Ditto.
1096 (i386_skip_noop): Ditto.
1097 (i386_analyze_frame_setup): Ditto.
1098 (i386_analyze_register_saves): Ditto.
1099 (i386_skip_prologue): Ditto.
1100 (i386_skip_main_prologue): Ditto.
1101
13b3fd9b
MS
1102 * target.c (read_whatever_is_readable): Fix memory leak.
1103
d3f323f3
MS
1104 * i386-tdep.c (i386_process_record): Document fall through.
1105
421d5c74
JK
11062011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 Fix DWARF-3+ DW_AT_accessibility default assumption.
1109 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1110 cu->header.version >= 3.
1111
63154eca
PA
11122011-03-08 Pedro Alves <pedro@codesourcery.com>
1113
1114 * remote.c (remote_check_symbols): Skip if the target has no
1115 execution.
1116
f1a507a1
JB
11172011-03-08 Joel Brobecker <brobecker@adacore.com>
1118
1119 * target.c (read_whatever_is_readable): Reformat comment,
1120 with a minor typo fix. Minor reformatting of the code.
1121
36073a92
YQ
11222011-03-08 Yao Qi <yao@codesourcery.com>
1123
1124 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1125 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1126 Use cached result instead of calling displaced_in_arm_mode again.
1127 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1128 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1129 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1130 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1131 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1132 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1133 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1134 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1135 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1136 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1137 (arm_catch_kernel_helper_return): Likewise.
1138 * gdb/arm-tdep.h : Update function declarations.
1139
d3f323f3 11402011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 1141
e0e40094
MS
1142 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1143
0b2381f5
MS
1144 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1145
0350914a
MS
1146 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1147
69feea6f
MS
1148 * elfread.c (elf_symtab_read): Stop memory leak.
1149
e6040cbd
MS
1150 * main.c (captured_main): Fix memory leak.
1151
052874e8
AS
11522011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1153
1154 * ada-lang.c (compare_names): Call is_name_suffix with string1
1155 instead of string2.
1156
b11896a5
TT
11572011-03-07 Tom Tromey <tromey@redhat.com>
1158
1159 * xcoffread.c (xcoff_sym_fns): Update.
1160 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1161 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1162 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1163 (symbol_file_add_with_addrs_or_offsets): Likewise.
1164 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1165 * somread.c (som_sym_fns): Update.
1166 * psymtab.h (require_partial_symbols): Declare.
1167 * psymtab.c (require_partial_symbols): New function.
1168 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1169 (ALL_OBJFILE_PSYMTABS): Undef.
1170 (ALL_PSYMTABS): Move from psympriv.h.
1171 (lookup_partial_symtab, find_pc_sect_psymtab)
1172 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1173 (find_last_source_symtab_from_partial)
1174 (forget_cached_source_info_partial)
1175 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1176 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1177 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1178 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1179 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1180 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1181 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1182 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1183 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1184 psymtabs.
1185 * mipsread.c (ecoff_sym_fns): Update.
1186 * machoread.c (macho_sym_fns): Update.
1187 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1188 (read_psyms): New function.
1189 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1190 (elf_sym_fns_lazy_psyms): New global.
1191 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1192 dwarf2_build_psymtabs.
1193 * dbxread.c (aout_sym_fns): Update.
1194 * coffread.c (coff_sym_fns): Update.
1195
fda326dd
TT
11962011-03-07 Tom Tromey <tromey@redhat.com>
1197
1198 * infrun.c (print_exited_reason): Include inferior id and pid in
1199 message.
1200
aeaec162
TT
12012011-03-07 Tom Tromey <tromey@redhat.com>
1202
1203 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1204 parameter.
1205 (target_has_execution_1): Update.
1206 (target_has_execution_current): Declare.
1207 (target_has_execution): Call target_has_execution_current.
1208 (default_child_has_execution): Update.
1209 * target.c (default_child_has_execution): Add 'the_ptid'
1210 parameter.
1211 (target_has_execution_1): Likewise.
1212 (target_has_execution_current): New function.
1213 (add_target): Update.
1214 (init_dummy_target): Update.
1215 * remote-m32r-sdi.c (m32r_has_execution): New function.
1216 (init_m32r_ops): Use it.
1217 * record.c (record_core_has_execution): Now static. Add
1218 'the_ptid' parameter.
1219 * inferior.c (have_live_inferiors): Don't save current thread.
1220 Use target_has_execution_1.
1221
08e14083
YQ
12222011-03-07 Yao Qi <yao@codesourcery.com>
1223
1224 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1225
c05d19c5
JB
12262011-03-07 Joel Brobecker <brobecker@adacore.com>
1227
1228 * elfread.c (elf_symtab_read): Minor reformatting.
1229
3e6ef9e4
JB
12302011-03-07 Joel Brobecker <brobecker@adacore.com>
1231
1232 * objc-lang.c (selectors_info): Minor reformatting.
1233
dbb8534f
JB
12342011-03-07 Joel Brobecker <brobecker@adacore.com>
1235
1236 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1237
dd70cc93
JB
12382011-03-07 Joel Brobecker <brobecker@adacore.com>
1239 Michael Snyder <msnyder@vmware.com>
1240
1241 * ada-valprint.c (ada_val_print_array): Move the declaration of
1242 "byte_order" and "elttype" inside the block where these variables
1243 are actually used. Remove some special handling for the case
1244 where "elttype" and "eltlen" are null. Replace by a comment
1245 and a couple of assertion checks.
1246
b27cf2b3
MS
12472011-03-05 Michael Snyder <msnyder@vmware.com>
1248
1249 * source.c (add_path): Replace semicolon at end of block.
1250 * dwarf2expr.c (execute_stack_op): Ditto.
1251
5387a0c6
MF
12522011-03-05 Mike Frysinger <vapier@gentoo.org>
1253
1254 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1255 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1256 (bfin-*-*): Likewise.
1257
e3aa49af
MS
12582011-03-05 Michael Snyder <msnyder@vmware.com>
1259
82ae4854
MS
1260 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1261 * mdebugread.c (parse_symbol): Ditto.
1262 * parse.c (parse_exp_in_context): Ditto.
1263 * source.c (add_path): Ditto.
1264 * utils.c (gnu_debuglink_crc32): Ditto.
1265 * varobj.c (variable_language): Ditto.
1266
e3aa49af
MS
1267 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1268
154f592e
MS
12692011-03-04 Michael Snyder <msnyder@vmware.com>
1270
da3ecdc6
MS
1271 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1272
9cc89665
MS
1273 * symfile.c (simple_overlay_update): Check for null return value
1274 from lookup_minimal_symbol.
1275
154f592e
MS
1276 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1277
63ffa6ee
TJB
12782011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1279
1280 * eval.c (parse_and_eval_address_1): Remove function.
1281 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1282 instead of parse_and_eval_address_1.
1283 * value.h (parse_and_eval_address_1): Remove prototype.
1284
a17d146e
MS
12852011-03-04 Michael Snyder <msnyder@vmware.com>
1286
1287 * remote.c (putpkt_binary): Document that case stmt falls through.
1288
1a6a67de
TJB
12892011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1290
1291 * breakpointc (print_it_typical): Move NULL check from here...
1292 (print_bp_stop_message): ... to here.
1293
488919c4
MS
12942011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1295
1296 * breakpoint.c (enable_command): Use break instead of continue,
1297 and fill in a missing break.
1298 (disable_command): Ditto.
1299
1e182ce8
UW
13002011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1301
1302 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1303 (terminal_save_ours): Remove misleading comment.
1304 (inflow_inferior_data_cleanup): Free ttystate.
1305 (inflow_inferior_exit): Likewise.
1306 (copy_terminal_info): Copy ttystate.
1307
1308 * serial.c (serial_copy_tty_state): New function.
1309 * serial.h (serial_copy_tty_state): Add prototype.
1310 (struct serial_ops): Add copy_tty_state callback.
1311 * ser-base.c (ser_base_copy_tty_state): New function.
1312 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1313 * ser-go32.c (dos_copy_tty_state): New function.
1314 (dos_ops): Install copy_tty_state callback.
1315 * ser-mingw.c (_initialize_ser_windows): Likewise.
1316 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1317 * ser-unix.c (hardwire_copy_tty_state): New function.
1318 (_initialize_ser_hardwire): Install it.
1319
b2c5f112
MS
13202011-03-04 Michael Snyder <msnyder@vmware.com>
1321
2abae994
MS
1322 * breakpoint.c (create_breakpoint): Add missing break statement.
1323
7f5936f9
MS
1324 Reverting this patch:
1325 * infcall.c (call_function_by_hand): Add break statements for lint.
1326
b2c5f112
MS
1327 Reverting this patch:
1328 * cli/cli-script.c (script_from_file): Add break for lint.
1329
42b1321c
MS
13302011-03-04 Michael Snyder <msnyder@vmware.com>
1331
1332 * solib.c (reload_shared_libraries_1): Close memory leak.
1333
3e2a0cee
TT
13342011-03-03 Tom Tromey <tromey@redhat.com>
1335
1336 PR gdb/12538:
1337 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1338 DW_STRING is NULL.
1339
58397cb7
MS
13402011-03-03 Michael Snyder <msnyder@vmware.com>
1341
2e3fd767
MS
1342 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1343 fields of struct 'st' to zero.
1344
58397cb7
MS
1345 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1346 sal.pspace before calling set_current_source_symtab_and_line.
1347
ced54c8f
YQ
13482011-03-03 Yao Qi <yao@codesourcery.com>
1349
1350 * Makefile.in (configure-common): Remove. Let Makefile
1351 in dir common to rebuild itself.
1352 (common/Makefile): Likewise.
1353
3351ea09
JB
13542011-03-03 Joel Brobecker <brobecker@adacore.com>
1355
1356 * utils.c (parse_escape): Add i18n markup in error message.
1357
bf9f652a
YQ
13582011-03-03 Yao Qi <yao@codesourcery.com>
1359
1360 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1361 ARM_PC_REGNUM.
1362 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1363 (displaced_write_reg, displaced_read_reg): Likewise.
1364 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1365 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1366 (cleanup_branch): Replace magic number 14 and 15 with
1367 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1368
d42de051
MS
13692011-03-02 Michael Snyder <msnyder@vmware.com>
1370
240f9570
MS
1371 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1372
10dd8b54
MS
1373 * cli/cli-script.c (script_from_file): Add break for lint.
1374
b98bd911
MS
1375 * mdebugread.c (parse_partial_symbols): Fix indent.
1376
3494b66d
MS
1377 * target-descriptions.c (tdesc_gdb_type): No need to call
1378 xstrdup, callee saves a copy.
1379
daac021a
MS
1380 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1381
c38d16a7
MS
1382 * infcall.c (call_function_by_hand): Add break statements for lint.
1383
905b671b
MS
1384 * utils.c (parse_escape): Escape the escape char.
1385
f2eb0bc8 1386 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
1387 PyList_Append fails.
1388 (gdbpy_inferiors): Error out if build_inferior_list fails.
1389
8c6a60d1
MS
1390 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1391 a function call.
1392
d42de051
MS
1393 * record.c (record_restore): Move printf to before error return.
1394
4db71c0b
YQ
13952011-03-02 Yao Qi <yao@codesourcery.com>
1396
1397 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1398 is_thumb and insn_size.
1399 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1400 on both ARM and Thumb mode.
1401 (arm_process_displaced_insn): Set is_thumb and insn_size.
1402 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1403 (arm_displaced_step_fixup): Likewise.
1404
a9dc8dcc
MS
14052011-03-01 Michael Snyder <msnyder@vmware.com>
1406
53624a93
MS
1407 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1408
77766669
MS
1409 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1410
62d5b8da
MS
1411 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1412
5e9e105f
MS
1413 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1414
dc19db01
MS
1415 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1416 with xmalloc.
1417
5ce64950
MS
1418 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1419 which shadows function parameter.
1420
a0aa2878
MS
1421 * tracepoint.c (create_tsv_from_upload): Superfluous call
1422 to xstrdup. Callee already calls xstrdup.
1423
e325fb69
MS
1424 * linespec.c (decode_line_1): Remove unnecessary null check.
1425
21cbba77
MS
1426 * tracepoint.c (scope_info): Fix mem leak, remove underused
1427 variable.
1428
63360adc
MS
1429 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1430 superfluous null check.
1431
18ea20ac 1432 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 1433 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 1434
d014929c
MS
1435 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1436
6e9130cf
MS
1437 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1438 be null.
1439
5f01dbc0
MS
1440 * linespec.c (decode_line_1): Check for null before dereference.
1441
d684ab85
MS
1442 * reverse.c (record_restore): Move null-check to before pointer
1443 dereference.
1444
bfffb7e3
MS
1445 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1446
a9dc8dcc
MS
1447 * objc-lang.c (selectors_info): Add explanitory comment.
1448 (classes_info): Ditto.
1449
478fd957
UW
14502011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1451
1452 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1453 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1454 versions of the trampoline. Handle Thumb vs. ARM addresses.
1455 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1456 (arm_linux_init_abi): Install it.
1457 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1458 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1459
0480cefa
MS
14602011-02-28 Michael Snyder <msnyder@vmware.com>
1461
ac50ab3b
MS
1462 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1463 a little bigger, to avoid possibility of an overflow.
1464
f63fbe86
MS
1465 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1466 buffers a little bigger, to avoid possibility of an overflow.
1467
9e91a352
MS
1468 * coffread.c (coff_getfilename): Add check to avoid overflow.
1469
f2eb0bc8 1470 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
1471 avoid overflow.
1472 (classes_info): Error out on too long REGEXP.
1473
098ab512
MS
1474 * infrun.c (handle_inferior_event): Remove unused function call.
1475
bcbd1de9
MS
1476 * fork-child.c (fork_inferior): Remove ifdef'd code and
1477 unused variable.
1478
2e456570
MS
1479 * linux-thread-db.c (attach_thread): Discard unused value.
1480
14571dad
MS
1481 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1482
a9cbf802
MS
1483 * remote.c (remote_get_noisy_reply): Discard unused value.
1484 (remote_vcont_resume): Ditto.
1485 (remote_stop_ns): Ditto.
1486
5715d26e
MS
1487 * linespec.c (decode_objc): Delete unused variable.
1488
4a9bca80
MS
1489 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1490
f47fb265
MS
1491 * dwarf2read.c (add_partial_symbol): Discard unused values.
1492 (read_base_type): Delete unused variable.
1493
e81cff30
MS
1494 * dbxread.c (read_dbx_symtab): Discard unused value.
1495
262acaeb
MS
1496 * eval.c (evaluate_subexp_standard): Delete unused variable,
1497 and discard unused values.
1498
df983543
MS
1499 * infcmd.c (_initialize_infcmd): Discard unused values.
1500
89acf84d
MS
1501 * stabsread.c (rs6000_builtin_type): Missing break statement.
1502
ab8b8aca
MS
1503 * dbxread.c (process_one_symbol): Discard unused value.
1504
6b4511ab
MS
1505 * coffread.c (coff_end_symtab): Delete unused variable.
1506
e8e80198
MS
1507 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1508 (dwarf2_add_typedef): Delete unused variable.
1509 (read_namespace): Ditto.
1510 (dwarf_decode_macros): Ditto.
1511
976aa66e
MS
1512 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1513
5b92b49f
MS
1514 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1515
91e8df85
MS
1516 * p-valprint.c (pascal_val_print): Discard unused value.
1517
899500d6
MS
1518 * utils.c (nquery): Call va_end before return;
1519 (yquery): Ditto.
1520 (query): Ditto.
1521
0480cefa
MS
1522 * proc-service.c (ps_plog): Call va_end before return.
1523
fb6a3ed3
TT
15242011-02-28 Tom Tromey <tromey@redhat.com>
1525
1526 * python/python.c (gdbpy_value_cst): New global.
1527 (_initialize_python): Initialize it.
1528 * python/python-internal.h (gdbpy_value_cst): Declare.
1529 * python/py-value.c (convert_value_from_python): Use
1530 gdbpy_value_cst.
1531
c05202a1
MS
15322011-02-28 Michael Snyder <msnyder@vmware.com>
1533
e463f587
MS
1534 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1535
c38eea1a
MS
1536 * breakpoint.c (catch_syscall_completer): Free malloced list.
1537
3ef09ab5
MS
1538 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1539
8f9a01ee
MS
1540 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1541 (lval_func_check_synthetic_pointer): Ditto.
1542 (lval_func_free_closure): Fix use-after-free.
c05202a1 1543
477d0d57
TT
15442011-02-28 Tom Tromey <tromey@redhat.com>
1545
1546 * psymtab.c (expand_partial_symbol_tables): Use
1547 ALL_OBJFILE_PSYMTABS.
1548
20937029
JK
15492011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1550
1551 * objc-lang.c (selectors_info): Error on too long REGEXP.
1552
907b7f4f
MS
15532011-02-28 Michael Snyder <msnyder@vmware.com>
1554
92e96192
MS
1555 * python/py-param.c (set_parameter_value): Add missing
1556 break statement.
1557
907b7f4f
MS
1558 * linux-record.c (record_linux_system_call): Add missing
1559 break statement.
1560
12c5a436
UW
15612011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1562
1563 * breakpoint.c (print_one_breakpoint_location): Remove unused
1564 argument PRINT_ADDRESS_BITS. Update callers.
1565 (print_one_breakpoint): Likewise.
1566
170b53b2
UW
15672011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1568
1569 * breakpoint.c (wrap_indent_at_field): New function.
1570 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1571 Allocate ui_stream locally instead of using STB argument.
1572 (print_one_breakpoint_location): Update call.
1573 * ui-out.c (ui_out_query_field): New function.
1574 * ui-out.h (ui_out_query_field): Add prototype.
1575
8ab1f94d
JB
15762011-02-28 Joel Brobecker <brobecker@adacore.com>
1577
1578 From Michael Snyder <msnyder@vmware.com>
1579 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1580
7d488639
MS
15812011-02-27 Michael Snyder <msnyder@vmware.com>
1582
ae179fba
MS
1583 * objc-lang.c (selectors_info): Prevent string overrun.
1584
086dbf66
MS
1585 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1586 error in strncpy.
1587
f2eb0bc8 1588 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
1589 outer scope.
1590
7d488639
MS
1591 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1592 param with a local variable of the same name.
1593
3bd0f5ef
MS
15942011-02-27 Michael Snyder <msnyder@vmware.com>
1595
1596 * value.c (value_from_history_ref): New function.
1597 * value.h (value_from_history_ref): Export.
1598 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1599 to parse value history references.
1600 * cli/cli-utils.h (get_number_trailer): Update comment.
1601
16022011-02-27 Michael Snyder <msnyder@vmware.com>
1603
1604 * inferior.c (detach_inferior_command): Use get_number_or_range.
1605 (kill_inferior_command): Ditto.
1606 (remove_inferior_command): Ditto.
1607 (initialize_inferiors): Make command names plural.
1608 Update help strings.
1609
766062f6
MS
16102011-02-27 Michael Snyder <msnyder@vmware.com>
1611
1612 * darwin-nat-info.c: Fix comment typo.
1613 * dwarf2expr.h: Ditto.
1614 * fbsd-nat.c: Ditto.
1615 * fbsd-nat.h: Ditto.
1616 * frame-unwind.h: Ditto.
1617 * frame.h: Ditto.
1618 * hppa-hpux-tdep.c: Ditto.
1619 * i386-linux-nat.c: Ditto.
1620 * linux-nat.c: Ditto.
1621 * nbsd-nat.c: Ditto.
1622 * nbsd-nat.h: Ditto.
1623 * ppc-linux-tdep.c: Ditto.
1624 * serial.c: Ditto.
1625 * ui-file.h: Ditto.
1626 * tui/tui-winsource.c: Ditto.
1627
f2c4ead5
MS
16282011-02-26 Michael Snyder <msnyder@vmware.com>
1629
86b887df
MS
1630 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1631
66fd3b1e
MS
1632 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1633
8c814cdd
MS
1634 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1635 with a local variable of the same name.
1636
6d5e094a 1637 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 1638 param with a local variable of the same name.
6d5e094a 1639 (i387_supply_xsave): Ditto.
e5b3d7d6 1640
5eee517d
MS
1641 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1642 that it does not shadow a function parameter.
1643
8fbf6b93
MS
1644 * i386-nat.c (i386_length_and_rw_bits): Document that case
1645 statement is meant to fall through.
1646
cb969d61
MS
1647 * expprint.c (dump_subexp_body_standard): Document that case
1648 statement is meant to fall through.
1649
f2c4ead5
MS
1650 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1651 dead if statement. Condition can't be false.
1652
b021a221
MS
16532011-02-25 Michael Snyder <msnyder@vmware.com>
1654
1655 * arm-tdep.c: Fix typos in comments.
1656 * bsd-uthread.c: Ditto.
1657 * completer.c: Ditto.
1658 * corelow.c: Ditto.
1659 * cp-namespace.c: Ditto.
1660 * cp-support.c: Ditto.
1661 * cris-tdep.c: Ditto.
1662 * dbxread.c: Ditto.
1663 * dwarf2read.c: Ditto.
1664 * frame.h: Ditto.
1665 * gdbtypes.h: Ditto.
1666 * inferior.h: Ditto.
1667 * mdebugread.c: Ditto.
1668 * mips-tdep.c: Ditto.
1669 * ppc-linux-nat.c: Ditto.
1670 * ppc-linux-tdep.c: Ditto.
1671 * printcmd.c: Ditto.
1672 * sol-thread.c: Ditto.
1673 * solib-frv.c: Ditto.
1674 * solist.h: Ditto.
1675 * sparc64-tdep.c: Ditto.
1676 * spu-tdep.c: Ditto.
1677 * stabsread.c: Ditto.
1678 * symfile.c: Ditto.
1679 * valops.c: Ditto.
1680 * varobj.c: Ditto.
1681 * vax-nat.c: Ditto.
1682 * python/py-block.c: Ditto.
1683 * python/py-symbol.c: Ditto.
1684 * python/py-symtab.c: Ditto.
1685 * python/py-value.c: Ditto.
1686 * tui/tui-win.c: Ditto.
1687
c82c0b55
MS
16882011-02-25 Michael Snyder <msnyder@vmware.com>
1689
1690 * inferior.c (print_inferior): Accept a string instead of an int
1691 for requested_inferiors, and use get_number_or_range to parse it.
1692 (info_inferiors_command): Pass args string to print_inferior.
1693 (initialize_inferiors): Change help string for info inferiors.
1694 * inferior.h (print_inferior): Export prototype change.
1695
ee00cd23
TT
16962011-02-25 Tom Tromey <tromey@redhat.com>
1697
1698 * common/ax.def (invalid2): Set to 0x31.
1699
0502ed8c
JK
17002011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
1703 L and plongest.
1704 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
1705 use L and plongest.
1706 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
1707
2c9de912
MS
17082011-02-24 Michael Snyder <msnyder@vmware.com>
1709
1710 * Makefile.in (clean): Make clean should remove generated files
1711 observer.h and observer.inc.
1712
a04b0428
JB
17132011-02-24 Joel Brobecker <brobecker@adacore.com>
1714
1715 Revert the following patch (not approved yet):
1716 2011-02-21 Hui Zhu <teawater@gmail.com>
1717 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1718 * ax-gdb.c (gen_printf_expr_callback): New function.
1719 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1720 * ax-general.c (ax_memcpy): New function.
1721 (ax_print): Handle "printf".
1722 (ax_reqs): Ditto.
1723 * ax.h (ax_memcpy): Forward declare.
1724 * common/ax.def (invalid2): Removed.
1725 (printf): New entry.
1726 * printcmd.c (printcmd.h): New include.
1727 (string_printf): New function.
1728 (ui_printf): Removed.
1729 (printf_command): Remove static. Call string_printf.
1730 (eval_command): Call string_printf.
1731 * printcmd.h: New file.
1732 * tracepoint.c (validate_actionline,
1733 encode_actions_1): handle printf_command.
1734
2b52013f
TT
17352011-02-23 Tom Tromey <tromey@redhat.com>
1736
1737 * ax-general.c (ax_pick): Add missing newline.
1738
e5a67952
MS
17392011-02-23 Michael Snyder <msnyder@vmware.com>
1740
1741 * breakpoint.c (breakpoint_1): Change first argument from an int
1742 to a char pointer, so that the function now accepts a list of
f2eb0bc8 1743 breakpoints rather than just one. Use new function
e5a67952
MS
1744 'number_is_in_list' to implement.
1745 (breakpoints_info): Pass char * instead of int to breakpoint_1.
1746 (watchpoints_info): Ditto.
1747 (tracepoints_info): Ditto.
1748 (maintenance_info_breakpoints): Ditto.
1749 (_initialize_breakpoint): Update help strings to reflect the fact
1750 that these functions can now take more than one argument.
1751 * cli/cli-utils.c (number_is_in_list): New function.
1752 * cli/cli-utils.h (number_is_in_list): Export.
1753
17542011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
1755
1756 * memattr.c (mem_enable_command): Use get_number_or_range.
1757 (mem_disable_command): Ditto.
1758 (mem_delete_command): Ditto.
1759 (_initialize_mem): Tweak usage message to reflect multiple
1760 arguments.
1761
6e6fbe60
DE
17622011-02-22 Doug Evans <dje@google.com>
1763
1764 Add gdb.lookup_global_symbol python function.
1765 * NEWS: Add entry.
1766 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
1767 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
1768 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
1769
79b97fa8
TT
17702011-02-22 Tom Tromey <tromey@redhat.com>
1771
1772 * language.c (language_class_name_from_physname): Rename
1773 'curr_language' argument to 'lang'; use in body.
1774
298f437a
MS
17752011-02-22 Michael Snyder <msnyder@vmware.com>
1776
1777 * cli/cli-utils.c (number_is_in_list): Check for zero return.
1778
b7ea3126
PA
17792011-02-22 Pedro Alves <pedro@codesourcery.com>
1780
1781 * frame-unwind.h: Fix comment to mention the this frame, not the
1782 next.
1783
58ee6d60
TT
17842011-02-22 Tom Tromey <tromey@redhat.com>
1785
1786 * symfile.c (auto_solib_limit): Remove.
1787 * symfile.h (auto_solib_limit): Remove.
1788
36238dbc
JB
17892011-02-22 Joel Brobecker <brobecker@adacore.com>
1790
1791 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
1792
aea5b279
MS
17932011-02-21 Michael Snyder <msnyder@vmware.com>
1794
1795 * gdbthread.h (print_thread_info): Change prototype.
1796 * thread.c (print_thread_info): Accept char* instead of int for
1797 requested_threads argument. Use new function number_is_in_list
1798 to determine which threads to list.
1799 (info_threads_command): Pass char* to print_thread_info.
1800 * cli/cli-utils.c (number_is_in_list): New function.
1801 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 1802 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
1803 print_thread_info.
1804 (print_one_inferior): Ditto.
1805 (mi_cmd_list_thread_groups): Ditto.
1806
8caa75ee
JK
18072011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 * common/Makefile.in (CFLAGS): New.
1810 (COMPILE): Add $(CFLAGS).
1811
ea666128
TT
18122011-02-21 Tom Tromey <tromey@redhat.com>
1813
1814 * breakpoint.c (catch_syscall_command_1): Fix typo.
1815
e9cafbcc
TT
18162011-02-21 Tom Tromey <tromey@redhat.com>
1817
1818 * reverse.c: Include cli-utils.h.
1819 * printcmd.c: Include cli-utils.h.
1820 (string_printf): Use skip_spaces.
1821 * cli/cli-utils.h: New file.
1822 * cli/cli-utils.c: New file.
1823 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
1824 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
1825 * breakpoint.h (get_number, get_number_or_range): Move to
1826 cli-utils.h.
1827 * breakpoint.c: Include cli-utils.h.
1828 (get_number_trailer, get_number, get_number_or_range)
1829 (ep_skip_leading_whitespace): Move to cli-utils.c.
1830 (create_breakpoint_sal, find_condition_and_thread)
1831 (decode_static_tracepoint_spec, watch_command_1)
1832 (watch_maybe_just_location, ep_parse_optional_if_clause)
1833 (catch_fork_command_1, catch_exec_command_1)
1834 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
1835 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
1836 (SUBDIR_CLI_SRCS): Add cli-utils.c.
1837 (HFILES_NO_SRCDIR): Add cli-utils.h.
1838 (cli-utils.o): New target.
1839
f67fd822
PM
18402011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1841
1842 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
1843 before calling discard_all_inferiors.
1844
c9def01d
UW
18452011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1846
1847 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
1848 (struct builtin_opencl_type): Remove.
1849 (builtin_opencl_type): Change return type to "struct type **".
1850 (lookup_opencl_vector_type): Update caller.
1851 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
1852 (build_opencl_types): Install plain array of "struct type *"
1853 instead of "struct builtin_opencl_type".
1854
e3039479
UW
18552011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1856 Ulrich Weigand <uweigand@de.ibm.com>
1857
1858 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
1859 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
1860 (struct arm_linux_hwbp_cap): New type.
1861 (arm_linux_get_hwbp_cap): New function.
1862 (arm_linux_get_hw_breakpoint_count): Likewise.
1863 (arm_linux_get_hw_watchpoint_count): Likewise.
1864 (arm_linux_can_use_hw_breakpoint): Likewise.
1865 (arm_hwbp_type): New type.
1866 (arm_hwbp_control_t): Likewise.
1867 (struct arm_linux_hw_breakpoint): Likewise.
1868 (struct arm_linux_thread_points): Likewise.
1869 (arm_threads): New global variable.
1870 (arm_linux_find_breakpoints_by_tid): New function.
1871 (arm_hwbp_control_initialize): Likewise.
1872 (arm_hwbp_control_is_enabled): Likewise.
1873 (arm_hwbp_control_disable): Likewise.
1874 (arm_linux_hw_breakpoint_initialize): Likewise.
1875 (arm_linux_get_hwbp_type): Likewise.
1876 (arm_linux_hw_watchpoint_initialize): Likewise.
1877 (arm_linux_hw_breakpoint_equal): Likewise.
1878 (arm_linux_insert_hw_breakpoint1): Likewise.
1879 (arm_linux_remove_hw_breakpoint1): Likewise.
1880 (arm_linux_insert_hw_breakpoint): Likewise.
1881 (arm_linux_remove_hw_breakpoint): Likewise.
1882 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
1883 (arm_linux_insert_watchpoint): Likewise.
1884 (arm_linux_remove_watchpoint): Likewise.
1885 (arm_linux_stopped_data_address): Likewise.
1886 (arm_linux_stopped_by_watchpoint): Likewise.
1887 (arm_linux_watchpoint_addr_within_range): Likewise.
1888 (arm_linux_new_thread): Likewise.
1889 (arm_linux_thread_exit): Likewise.
1890 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
1891 related target callbacks. Register arm_linux_new_thread and
1892 arm_linux_thread_exit.
1893 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
1894 * arm-tdep.c (arm_pc_is_thumb): Make global.
1895 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
1896
b5db5dfc
UW
18972011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1898
1899 * breakpoint.c (update_watchpoint): Do not attempt to recreate
1900 per-frame locations while within a function epilogue.
1901
e25b2cfa
PM
19022011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1903
1904 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
1905 to GNU coding standards.
1906
4af53f97
PM
19072011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1908
1909 Allow use of mingw native on Windows 95 OS.
e25b2cfa 1910 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
1911 (ser_windows_close): Only call CancelIo if function exists.
1912 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
1913 to check for existence of CancelIo function in kernel32 DLL.
1914
d0e92d82
HZ
19152011-02-21 Hui Zhu <teawater@gmail.com>
1916
1917 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1918 * ax-gdb.c (gen_printf_expr_callback): New function.
1919 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1920 * ax-general.c (ax_memcpy): New function.
1921 (ax_print): Handle "printf".
1922 (ax_reqs): Ditto.
1923 * ax.h (ax_memcpy): Forward declare.
1924 * common/ax.def (invalid2): Removed.
1925 (printf): New entry.
1926 * printcmd.c (printcmd.h): New include.
1927 (string_printf): New function.
1928 (ui_printf): Removed.
1929 (printf_command): Remove static. Call string_printf.
1930 (eval_command): Call string_printf.
1931 * printcmd.h: New file.
1932 * tracepoint.c (validate_actionline,
1933 encode_actions_1): handle printf_command.
1934
7d357efd
MS
19352011-02-19 Michael Snyder <msnyder@vmware.com>
1936
1937 * reverse.c (delete_one_bookmark): Argument is now bookmark
1938 id rather than pointer to bookmark struct.
1939 (delete_bookmark_command): Use get_number_or_range.
1940 (goto_bookmark_command): Parse with get_number instead of strtoul.
1941 (bookmark_1): New function. Print info for one bookmark.
1942 (bookmarks_info): Use get_number_or_range and bookmark_1.
1943
7a45ebd7
MS
19442011-02-18 Michael Snyder <msnyder@vmware.com>
1945
f2eb0bc8 1946 * thread.c (info_threads_command): Re-implement using
7a45ebd7 1947 get_number_or_range.
65ebfb52 1948 (thread_apply_command): Ditto.
7a45ebd7 1949
94d5e490
TT
19502011-02-18 Tom Tromey <tromey@redhat.com>
1951
1952 * common/ax.def: New file.
1953 * ax.h (enum agent_op): Use ax.def.
1954 * ax-general.c (aop_map): Use ax.def.
1955
c7f96d2b
TT
19562011-02-18 Tom Tromey <tromey@redhat.com>
1957
1958 * ax-general.c (aop_map): Add pick and rot.
1959 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1960 <DW_OP_rot>: Implement.
1961 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1962 (ax_pick): Declare.
1963 * ax-general.c (ax_pick): New function.
1964
66694b75
TT
19652011-02-18 Tom Tromey <tromey@redhat.com>
1966
1967 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1968
eeaafae2
JK
19692011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 Tom Tromey <tromey@redhat.com>
1971
1972 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1973 make_symbol_overload_list_block with NULL BLOCK.
1974 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1975
3c3fe74c
PA
19762011-02-18 Pedro Alves <pedro@codesourcery.com>
1977
1978 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1979 * breakpoint.h (get_number_or_range): Declare.
1980 * printcmd.c (ALL_DISPLAYS): Declare.
1981 (delete_display): Reimplement taking a display pointer.
1982 (undisplay_command): Accept a range of displays to delete, using
1983 get_number_or_range.
1984
13163d80
PM
19852011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1986
1987 * c-valprint.c (c_val_print): Add embedded_offset to address
1988 for arrays of unspecified length.
1989 * p-valprint.c (pascal_val_print): Likewise.
1990
b434a28f
YQ
19912011-02-18 Yao Qi <yao@codesourcery.com>
1992
1993 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1994 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1995 (thumb_process_displaced_insn): New.
1996 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1997 call to arm_process_displaced_insn.
1998 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1999
9f6f94ff
TT
20002011-02-17 Tom Tromey <tromey@redhat.com>
2001
2002 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2003 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2004 compile_dwarf_to_ax. No longer static. Call
2005 dwarf2_compile_cfa_to_ax.
2006 (locexpr_tracepoint_var_ref): Update.
2007 (loclist_tracepoint_var_ref): Update.
2008 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2009 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2010 argument; add 'gdbarch' and 'pc'.
2011 (dwarf2_compile_cfa_to_ax): New function.
2012 (dwarf2_frame_cache): Update.
2013
e67ad678
JB
20142011-02-17 Joel Brobecker <brobecker@adacore.com>
2015
2016 * ada-lang.c (ada_type_of_array): Fix the size of the array
2017 in the case of an unconstrained packed array.
2018
946ebb0d
YQ
20192011-02-17 Yao Qi <yao@codesourcery.com>
2020
2021 * common/Makefile.in: Add more targets for make.
2022
1ba1b353
TT
20232011-02-16 Tom Tromey <tromey@redhat.com>
2024
2025 * dwarf2loc.c (unimplemented): Fix typo.
2026
b1bfef65
TT
20272011-02-16 Tom Tromey <tromey@redhat.com>
2028
2029 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2030 (compile_dwarf_to_ax) <default>: Use unimplemented.
2031 <DW_OP_deref>: Update.
2032 (disassemble_dwarf_expression): Update.
2033 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2034 (decode_locdesc): Update.
2035 * dwarf2expr.h (dwarf_stack_op_name): Update.
2036
5f1e6f19
TT
20372011-02-16 Tom Tromey <tromey@redhat.com>
2038
2039 * ax.h (struct aop_map) <name>: Now const.
2040
a0c78a73
PA
20412011-02-16 Tom Tromey <tromey@redhat.com>
2042
2043 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2044 than axs_rvalue.
2045
946ebb0d 20462011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
2047
2048 * infrun.c (get_displaced_step_closure_by_addr): New.
2049 * inferior.h: Declare it.
2050 * arm-tdep.c: (arm_pc_is_thumb): Call
2051 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2052 returns non-NULL.
2053
08807d5a
PA
20542011-02-16 Pedro Alves <pedro@codesourcery.com>
2055 Jan Kratochvil <jan.kratochvil@redhat.com>
2056
2057 gdb/
2058 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2059
29976f3f
PA
20602011-02-16 Pedro Alves <pedro@codesourcery.com>
2061 Jan Kratochvil <jan.kratochvil@redhat.com>
2062
2063 * value.c (value_contents_copy_raw): Extend describing comment.
2064 Assert that the destination contents we're overwriting are wholly
2065 available.
fb68ae73 2066 (value_contents_copy): Extend describing comment.
29976f3f 2067
cd24cfaa
PA
20682011-02-16 Pedro Alves <pedro@codesourcery.com>
2069 Jan Kratochvil <jan.kratochvil@redhat.com>
2070
2071 * value.c (value_available_contents_eq): Remove redundant local
2072 variables. Fix available contents comparision.
2073 * value.h (value_available_contents_eq): Extend describing
2074 comment.
2075
60bbf338
YQ
20762011-02-16 Yao Qi <yao@codesourcery.com>
2077
2078 * thread.c (info_threads_command): Add missing i18n markup and remove
2079 trailing newline.
2080
17450429
PP
20812011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2082
2083 * breakpoint.c (longjmp_names): New variable.
2084 (struct breakpoint_objfile_data): New type.
2085 (breakpoint_objfile_key): New variable.
2086 (msym_not_found): New variable.
2087 (msym_not_found_p): New predicate.
2088 (get_breakpoint_objfile_data): New function.
2089 (create_overlay_event_breakpoint): Check per-objfile cache for
2090 symbols first.
2091 (create_longjmp_master_breakpoint): Likewise.
2092 (create_std_terminate_master_breakpoint): Likewise.
2093 (create_exception_master_breakpoint): Likewise.
2094 (_initialize_breakpoint): Register per-objfile data key.
2095
af02033e
PP
20962011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2097
2098 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2099 parameter value.
2100 (create_longjmp_master_breakpoint): Loop over longjmp names.
2101 (create_std_terminate_master_breakpoint): Const-propagate parameter
2102 value.
2103 (update_breakpoints_after_exec): Adjust.
2104 (breakpoint_re_set): Adjust.
2105
60f98dde
MS
21062011-02-15 Michael Snyder <msnyder@vmware.com>
2107
cdf99611
MS
2108 * thread.c (info_threads_command): Process arg as thread id,
2109 or list of thread ids.
2110 (thread_find_command): New command.
2111 (_initialize_thread): Document argument for info threads.
2112 Document 'thread find' command.
2113 * NEWS: Document new command "thread find".
60f98dde 2114
0feedb2c
JK
21152011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2118 * aclocal.m4: Regenerated with aclocal-1.11.1.
2119 * common/configure: Regenerate with autoconf-2.64.
2120
648cd113
KW
21212011-02-15 Ken Werner <ken.werner@de.ibm.com>
2122
2123 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2124 bool data type to a size of one byte.
2125
5657161f
PA
21262011-02-15 Pedro Alves <pedro@codesourcery.com>
2127 Jan Kratochvil <jan.kratochvil@redhat.com>
2128
2129 * target.c (memory_xfer_live_readonly_partial): Document where to
2130 look for interface description.
2131
494e194e
YQ
21322011-02-15 Yao Qi <yao@codesourcery.com>
2133
2134 PR tdep/12352
2135 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2136 order to store PC value on stack instead of text section.
2137
d9492458
TJB
21382011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2139
2140 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2141 the EFP register set size.
2142 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2143 data from the VMX register.
2144 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2145 and write data from/to the VMX register.
2146
cdf99611
MS
21472011-02-14 Michael Snyder <msnyder@vmware.com>
2148
2149 * command.h (enum command_class): New class 'no_set_class', for
2150 "show" commands without a corresponding "set" command.
2151 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2152 * copying.c (_initialize_copying): Ditto for "show copying" and
2153 "show warranty".
2154 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2155 "show version".
2156 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2157 which there is no corresponding "set" command (eg. "show copying").
2158
424447ee
PA
21592011-02-14 Pedro Alves <pedro@codesourcery.com>
2160 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
2162 * exec.c (section_table_available_memory): Change `len' parameter
2163 type to ULONGEST.
2164 * exec.h (section_table_available_memory): Ditto.
2165 * value.h (read_value_memory): Rename the `offset' parameter to
2166 `embedded_offset'.
2167
c0f61f9c 21682011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 2169 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
2170
2171 * memrange.c (compare_mem_ranges): Mention sort order in
2172 describing comment.
2173 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2174 * tracepoint.c (traceframe_available_memory): Extend comment to
2175 mention what happens to RESULT when the target does not support
2176 the query.
2177
6bfc80c7
PA
21782011-02-14 Pedro Alves <pedro@codesourcery.com>
2179 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2182 range.
2183
e7303042
PA
21842011-02-14 Pedro Alves <pedro@codesourcery.com>
2185
2186 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2187 No longer handle NULL values.
2188
8af8e3bc
PA
21892011-02-14 Pedro Alves <pedro@codesourcery.com>
2190
2191 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2192 * value.c: Include "exceptions.h".
2193 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2194 generic error.
2195 * cp-abi.c: Include gdb_assert.h.
2196 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2197 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2198 errors.
2199 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2200 parameters. No longer returns -1 on error.
2201 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2202 `val' parameters.
2203 * cp-valprint.c: Include exceptions.h.
2204 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2205 the baseclass_offset. Handle unavailable base classes. Use
2206 val_print_invalid_address.
2207 * p-valprint.c: Include exceptions.h.
2208 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2209 when fetching the baseclass_offset. No longer expect
2210 baseclass_offset returning -1. Handle unavailable base classes.
2211 Use val_print_invalid_address.
2212 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2213 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2214 `embedded_offset' and `val' parameters. Adjust.
2215 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2216 parameter, and change its type to gdb_byte pointer. Add
2217 `embedded_offset' and `val' parameters. Adjust. No longer expect
2218 baseclass_offset returning -1.
2219 (value_dynamic_cast): Use value_contents_for_printing rather than
2220 value_contents. Adjust.
2221 (search_struct_field): No longer expect baseclass_offset returning
2222 -1.
2223 (search_struct_method): If reading memory from the target is
2224 necessary, wrap it in a new value to pass to baseclass_offset. No
2225 longer expect baseclass_offset returning -1.
2226 (find_method_list): No longer expect baseclass_offset returning
2227 -1. Use value_contents_for_printing rather than value_contents.
2228 * valprint.c (val_print_invalid_address): New function.
2229 * valprint.h (val_print_invalid_address): Declare.
2230 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2231 and `val' parameters. No longer expect baseclass_offset returning
2232 -1. Adjust.
2233 * gnu-v2-abi.c: Include "exceptions.h".
2234 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2235 parameters. Handle unavailable memory. Recurse through
2236 gnuv2_baseclass_offset directly, rather than through
2237 baseclass_offset. No longer returns -1 on not found, instead
2238 throw an error.
2239 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2240 `val' parameters. Adjust.
2241
1b28d0b3
PA
22422011-02-14 Pedro Alves <pedro@codesourcery.com>
2243
2244 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2245 almost but not quite adjacent.
2246
ec0a52e1
PA
22472011-02-14 Pedro Alves <pedro@codesourcery.com>
2248
2249 * value.h (value_entirely_available): Declare.
2250 * value.c (value_entirely_available): New function.
2251 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2252 real type if the pointer is unavailable.
2253
24e6bcee
PA
22542011-02-14 Pedro Alves <pedro@codesourcery.com>
2255
2256 * valops.c (value_repeat): Use read_value_memory instead of
2257 read_memory.
2258
39d37385
PA
22592011-02-14 Pedro Alves <pedro@codesourcery.com>
2260
2261 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2262 * value.c (value_contents_copy_raw, value_contents_copy): New
2263 functions.
2264 (value_primitive_field): Use value_contents_copy_raw instead of
2265 memcpy.
2266 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2267 memcpy.
2268 (value_array, value_slice): Ditto.
2269 * valarith.c (value_subscripted_rvalue): Use
2270 value_contents_copy_raw instead of memcpy.
2271
a3d34bf4
PA
22722011-02-14 Pedro Alves <pedro@codesourcery.com>
2273
2274 <unavailable> references.
2275
2276 * valops.c (get_value_at): Use value_from_contents_and_address,
2277 avoiding read_memory.
2278
9fc6d940
PA
22792011-02-14 Pedro Alves <pedro@codesourcery.com>
2280
2281 * c-valprint.c (c_val_print): Print a string with unavailable
2282 contents as an array.
2283
5467c6c8
PA
22842011-02-14 Pedro Alves <pedro@codesourcery.com>
2285
2286 * value.h (unpack_bits_as_long): Delete declaration.
2287 (unpack_value_bits_as_long): Declare.
2288 (unpack_value_field_as_long): Declare.
2289 (value_field_bitfield): Declare.
2290 * value.c (unpack_bits_as_long): Rename to...
2291 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2292 value parameters. Return the extracted result in a new output
2293 parameter. If the value contents are unavailable, return false,
2294 otherwise return true.
2295 (unpack_value_bits_as_long): New.
2296 (unpack_field_as_long): Rename to...
2297 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2298 Add embedded_offset and value parameters. Return the extracted
2299 result in a new output parameter. If the value contents are
2300 unavailable, return false, otherwise return true.
2301 (unpack_value_field_as_long): New.
2302 (unpack_field_as_long_1): New.
2303 (unpack_field_as_long): Reimplement as wrapper around
2304 unpack_value_field_as_long_1.
2305 (value_field_bitfield): New function.
2306 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2307 unpack_value_bits_as_long. Mark the value as unavailable, if it
2308 is unavailable.
2309 * jv-valprint.c (java_print_value_fields): Use
2310 value_field_bitfield.
2311 * p-valprint.c (pascal_object_print_value_fields): Use
2312 value_field_bitfield.
2313 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2314
3158c6ed
PA
23152011-02-14 Pedro Alves <pedro@codesourcery.com>
2316
2317 * value.c (get_internalvar_integer): Also return the int value of
2318 TYPE_CODE_INT INTERNALVAR_VALUE values.
2319 (set_internalvar): Don't special case TYPE_CODE_INT.
2320
9fbdca0d
PA
23212011-02-14 Pedro Alves <pedro@codesourcery.com>
2322
2323 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2324 INTERNALVAR_POINTER.
2325 <pointer>: Delete.
2326 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2327 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2328 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2329
c8c1c22f
PA
23302011-02-14 Pedro Alves <pedro@codesourcery.com>
2331
2332 * value.h (value_available_contents_eq): Declare.
2333 * value.c (find_first_range_overlap): New function.
2334 (value_available_contents_eq): New function.
2335 * valprint.c (val_print_array_elements): Use
2336 value_available_contents_eq.
2337 * ada-valprint.c (val_print_packed_array_elements): Use
2338 value_available_contents_eq.
2339 * jv-valprint.c (java_value_print): Use
2340 value_available_contents_eq.
2341
e6e4e701
PA
23422011-02-14 Pedro Alves <pedro@codesourcery.com>
2343
2344 * target.c (target_read_live_memory): New function.
2345 (memory_xfer_live_readonly_partial): New.
2346 (memory_xfer_partial): If reading from a traceframe, fallback to
2347 reading unavailable read-only memory from read-only regions of
2348 live target memory.
2349 * tracepoint.c (disconnect_tracing): Adjust.
2350 (set_current_traceframe): New, factored out from
2351 set_traceframe_number.
2352 (set_traceframe_number): Reimplement to only change the traceframe
2353 number on the GDB side.
2354 (do_restore_current_traceframe_cleanup): Adjust.
2355 (make_cleanup_restore_traceframe_number): New.
2356 (cur_traceframe_number): New global.
2357 (tfile_open): Set cur_traceframe_number to no traceframe.
2358 (set_tfile_traceframe): New function.
2359 (tfile_trace_find): If looking up a traceframe using any method
2360 other than by number, make sure the current tfile traceframe
2361 matches gdb's current traceframe. Update the current tfile
2362 traceframe if the lookup succeeded.
2363 (tfile_fetch_registers, tfile_xfer_partial)
2364 (tfile_get_trace_state_variable_value): Make sure the remote
2365 traceframe matches gdb's current traceframe.
2366 * remote.c (remote_traceframe_number): New global.
2367 (remote_open_1): Set it to -1.
2368 (set_remote_traceframe): New function.
2369 (remote_fetch_registers, remote_store_registers)
2370 (remote_xfer_memory, remote_xfer_partial)
2371 (remote_get_trace_state_variable_value): Make sure the remote
2372 traceframe matches gdb's current traceframe.
2373 (remote_trace_find): If looking up a traceframe using any method
2374 other than by number, make sure the current remote traceframe
2375 matches gdb's current traceframe. Update the current remote
2376 traceframe if the lookup succeeded.
2377 * infrun.c (fetch_inferior_event): Adjust.
2378 * tracepoint.h (set_current_traceframe): Declare.
2379 (get_traceframe_number, set_traceframe_number): Add describing
2380 comments.
2381
e6ca34fc
PA
23822011-02-14 Pedro Alves <pedro@codesourcery.com>
2383
2384 Mark pieces of values as unavailable if the corresponding memory
2385 is unavailable.
2386
2387 * valops.c: Include tracepoint.h.
2388 (value_fetch_lazy): Use read_value_memory.
2389 (read_value_memory): New.
2390 * value.h (read_value_memory): Declare.
2391 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2392 * exec.c (section_table_available_memory): New function.
2393 * exec.h (section_table_available_memory): Declare.
2394
2a7498d8
PA
23952011-02-14 Pedro Alves <pedro@codesourcery.com>
2396
2397 * Makefile.in (SFILES): Add memrange.c.
2398 (HFILES_NO_SRCDIR): Add memrange.h.
2399 (COMMON_OBS): Add memrange.o.
2400 * memrange.c: New file.
2401 * memrange.h: New file.
2402 * tracepoint.c: Include memrange.h.
2403 (struct mem_range): Delete.
2404 (mem_range_s): Delete.
2405 (traceframe_available_memory): New function.
2406 * tracepoint.h (traceframe_available_memory): Declare.
2407
b3b9301e
PA
24082011-02-14 Pedro Alves <pedro@codesourcery.com>
2409
2410 * target.h (struct traceframe_info): Forward declare.
2411 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2412 (struct target_ops) <to_traceframe_info>: New field.
2413 (target_traceframe_info): New.
2414 * target.c (update_current_target): Inherit and default
2415 to_traceframe_info.
2416 * remote.c (PACKET_qXfer_traceframe_info): New.
2417 (remote_protocol_features): Register qXfer:traceframe-info:read.
2418 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2419 (remote_traceframe_info): New.
2420 (init_remote_ops): Install it.
2421 (_initialize_remote): Install "set/show remote traceframe-info"
2422 commands.
2423 * tracepoint.h (parse_traceframe_info): Declare.
2424 * tracepoint.c (struct mem_range): New.
2425 (mem_range_s): New typedef.
2426 (struct traceframe_info): New.
2427 (traceframe_info): New global.
2428 (free_traceframe_info): New function.
2429 (clear_traceframe_info): New function.
2430 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2431 info.
2432 (build_traceframe_info): New function.
2433 (tfile_traceframe_info): New function.
2434 (init_tfile_ops): Install tfile_traceframe_info.
2435 (traceframe_info_start_memory, free_result): New functions.
2436 (memory_attributes, traceframe_info_elements): New globals.
2437 (parse_traceframe_info, get_traceframe_info): New functions.
2438 * features/traceframe-info.dtd: New file.
2439 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2440
4e07d55f
PA
24412011-02-14 Pedro Alves <pedro@codesourcery.com>
2442
2443 Base support for <unavailable> value contents.
2444
4e07d55f
PA
2445 * value.h (value_bytes_available): Declare.
2446 (mark_value_bytes_unavailable): Declare.
2447 * value.c (struct range): New struct.
2448 (range_s): New typedef.
2449 (ranges_overlap): New function.
2450 (range_lessthan): New function.
2451 (ranges_contain_p): New function.
2452 (struct value) <unavailable>: New field.
2453 (value_bytes_available): New function.
2454 (mark_value_bytes_unavailable): New function.
2455 (require_not_optimized_out): Constify parameter.
2456 (require_available): New function.
2457 (value_contents_all, value_contents): Require all bytes be
2458 available.
2459 (value_free): Free `unavailable'.
2460 (value_copy): Copy `unavailable'.
2461 * valprint.h (val_print_unavailable): Declare.
2462 * valprint.c (valprint_check_validity): Rename `offset' parameter
2463 to `embedded_offset'. If printing a scalar, check whether the
2464 value chunk is available.
2465 (val_print_unavailable): New.
2466 (val_print_scalar_formatted): Check whether the value is
2467 available.
2468 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2469 pretty-printing unavailable values.
2470
bc9a5551
JK
24712011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2472
2473 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2474 * c-typeprint.c (c_type_print_args): Update the function comment. New
2475 variable param_type, initialize it. Remove const/volatile qualifiers
2476 for language_cplus and !show_artificial. Use param_type.
2477
93b55aa1
JK
24782011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2481 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2482 * symtab.h (struct symtab) <next>: Comment extension.
2483
181d9476
YQ
24842011-02-12 Yao Qi <yao@codesourcery.com>
2485
2486 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2487
b708a5c7
JK
24882011-02-11 Yao Qi <yao@codesourcery.com>
2489
2490 * common/Makefile.in: Add copyright header.
2491
c5187ac6
PA
24922011-02-11 Pedro Alves <pedro@codesourcery.com>
2493
2494 * infrun.c (proceed): Move switching out and in of tfind mode from
2495 here ...
2496 (fetch_inferior_event): ... to here.
2497
4f3e6fb7
YQ
24982011-02-11 Yao Qi <yao@codesourcery.com>
2499
2500 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2501 libcommon.a.
2502 * configure.ac: Add common to sub dir.
2503 * configure: Regenerate.
2504
b708a5c7
JK
25052011-02-11 Yao Qi <yao@codesourcery.com>
2506
2507 Build libcommon.a.
2508
2509 * common/Makefile.in: New.
2510 * common/configure.ac: New.
2511 * common/aclocal.m4: New.
2512 * common/configure: Generate.
2513
2287cc7e
PA
25142011-02-10 Pedro Alves <pedro@codesourcery.com>
2515
2516 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2517 side of the parenthesis.
2518
2519 Merge from GCC:
2520 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 2521 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 2522
fd62cb89
MS
25232011-02-08 Michael Snyder <msnyder@vmware.com>
2524
2525 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2526
56d2815c
JK
25272011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2530 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2531 psubd and paddd.
2532
4f7d61a8
JK
25332011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2534
2535 PR 12361.
2536 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2537 phsubsw.
2538 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2539 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2540
54fcddd0
UW
25412011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2542
2543 * dwarf2read.c (read_subroutine_type): Set special calling
2544 convention flag for functions compiled by IBM XL C for OpenCL.
2545 * ppc-sysv-tdep.c: Include "dwarf2.h"
2546 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2547 calling convention.
2548 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2549 IBM OpenCL vector types calling convention.
2550 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2551 (ppc_sysv_abi_broken_return_value): Likewise.
2552 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2553 types calling convention.
2554 (ppc64_sysv_abi_return_value): Likewise.
2555 * spu-tdep.c: Include "dwarf2.h"
2556 (spu_return_value): Implement IBM OpenCL vector types calling
2557 convention.
2558
d6dafb7c
UW
25592011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2560
2561 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2562 correct ABI for AltiVec vector arguments.
2563
32b72a42
PA
25642011-02-07 Pedro Alves <pedro@codesourcery.com>
2565
2566 * valprint.c (val_print): Extend comment.
2567 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2568 interface explanation to val_print.
2569 (ada_val_print_array): Adjust comment to current interface.
2570 (print_field_values): Adjust comment to current interface.
2571 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2572 explanation to val_print.
2573 * f-valprint.c (f_val_print): Ditto.
2574 * jv-valprint.c (java_val_print): Ditto.
2575 * m2-valprint.c (m2_val_print): Ditto.
2576 * p-valprint.c (pascal_val_print): Ditto.
2577
9998af43
TJB
25782011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2579
2580 * breakpoint.c (parse_breakpoint_sals): Fix description.
2581
505500db 25822011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 2583 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
2584
2585 * python/py-inferior.c (python_on_normal_stop): New function.
2586 (python_on_resume): New function.
2587 (python_inferior_exit): New function.
2588 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2589 inferior_exit observers.
2590 * python/py-evtregistry.c: New file.
2591 * python/py-threadevent.c : New file.
2592 * python/py-event.c: New file.
2593 * python/py-evts.c: New file.
2594 * python/py-continueevent.c: New file.
2595 * python/py-bpevent.c: New file.
2596 * python/py-signalevent.c: New file.
2597 * python/py-exetiedevent.c: New file.
2598 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2599 Move struct breakpoint_object from here...
2600 * python/python-internal.h: ... to here.
2601 * python/py-event.h: New file.
2602 * python/py-events.h: New file.
2603 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2604 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2605 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2606 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2607 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2608 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2609 Add build rules for all the above.
2610
9e0ac564
TT
26112011-02-04 Tom Tromey <tromey@redhat.com>
2612
2613 * dwarf2read.c (dwarf2_section_empty_p): New function.
2614 (dwarf2_read_section): Use dwarf2_section_empty_p.
2615 (dwarf2_section_size): New function.
2616 (dwarf2_get_section_info): Unconditionally read section.
2617 (dwarf2_read_index): Use dwarf2_section_empty_p.
2618 (partial_read_comp_unit_head): Use dwarf2_section_size.
2619 (dwarf2_symbol_mark_computed): Likewise.
2620
eee5b35e
DD
26212011-02-04 David Daney <ddaney@caviumnetworks.com>
2622
2623 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2624
385203ed
DD
26252011-02-04 David Daney <ddaney@caviumnetworks.com>
2626
2627 * mips-linux-tdep.c: Include xml-syscall.h.
2628 (mips_linux_get_syscall_number): New function.
2629 (mips_linux_init_abi): Add calls to
2630 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2631 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2632 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2633 * syscalls/mips-n32-linux.xml: New file.
2634 * syscalls/mips-n64-linux.xml: New file.
2635 * syscalls/mips-o32-linux.xml: New file.
2636
9277c30c
UW
26372011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2638
2639 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2640 Complain about inverted range entries.
2641 (dwarf2_record_block_ranges): Likewise.
2642
a3be7890
TJB
26432011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2644
2645 Fix some typos.
2646 * breakpoint.c (update_watchpoint): Fix name of the
2647 update_global_location_list function.
2648 (print_one_breakpoint): Fix typo.
2649 (_initialize_breakpoint): Remove extra space in hbreak help
2650 string.
2651 * breakpoint.h (struct bp_location) <length>: Fix field
2652 description.
2653
041274d8
PA
26542011-02-04 Pedro Alves <pedro@codesourcery.com>
2655
2656 * regcache.c (registers_changed_ptid): Don't explictly always
2657 clear `current_regcache'. Only clear current_thread_ptid and
2658 current_thread_arch when PTID matches. Only reinit the frame
2659 cache if PTID matches the current inferior_ptid. Move alloca(0)
2660 call to ...
2661 (registers_changed): ... here.
2662
c1c2ab58
UW
26632011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2664
2665 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2666 starts with __stack_chk_guard as stack guard symbol.
2667
9011945e
AB
26682011-02-03 Andrew Burgess <aburgess@broadcom.com>
2669
2670 * disasm.c (compare_lines): Handle the end of sequence markers
2671 within the line table to better support disassembling over
2672 compilation unit boundaries.
2673
e0634ccf
UW
26742011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2675
2676 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2677 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
2678 implementation even if no symbols are available.
2679 (thumb_analyze_prologue): Update call to skip_prologue_function.
2680 (arm_analyze_prologue): Likewise.
2681
0e9e9abd
UW
26822011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2683
2684 * arm-tdep.c: Include "observer.h".
2685 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
2686 (arm_exidx_data_key): New static variable.
2687 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
2688 (struct arm_exidx_data): Likewise.
2689 (arm_exidx_data_free): New function.
2690 (arm_compare_exidx_entries): Likewise.
2691 (arm_obj_section_from_vma): Likewise.
2692 (arm_exidx_new_objfile): Likewise.
2693 (arm_find_exidx_entry): Likewise.
2694 (arm_exidx_fill_cache): Likewise.
2695 (arm_exidx_unwind_sniffer): Likewise.
2696 (arm_exidx_unwind): New global variable.
2697 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
2698 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
2699 observer. Register arm_exidx_data_key as objfile data.
2700
2e9e421f
UW
27012011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2702
2703 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
2704 due to accessing uninitialized variable. Fix indentation.
2705
580688f3
PA
27062011-02-02 Pedro Alves <pedro@codesourcery.com>
2707
2708 * c-valprint.c (c_value_print): When doing virtual base pointer
2709 adjustment, create a new value with adjusted contents rather than
2710 changing the contents of the value being printed (and getting it
2711 wrong).
2712
3d2c1d41
PA
27132011-02-02 Pedro Alves <pedro@codesourcery.com>
2714
2715 * xml-support.c (xml_find_attribute): New.
2716 (xinclude_start_include): Use it.
2717 * xml-support.h (xml_find_attribute): Declare.
2718 * memory-map.c (memory_map_start_memory)
2719 (memory_map_start_property): Use xml_find_attribute.
2720 * osdata.c (osdata_start_osdata, osdata_start_column): Use
2721 xml_find_attribute.
2722 * remote.c (start_thread): Use xml_find_attribute.
2723 * solib-target.c (library_list_start_segment)
2724 (library_list_start_section, library_list_start_library)
2725 (library_list_start_list): Use xml_find_attribute.
2726 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
2727 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
2728 (tdesc_start_field): Use xml_find_attribute.
2729
0af3e2db
UW
27302011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
2731
2732 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
2733 (BUILD_OCL_VTYPES): Update.
2734
c1039e3c
JB
27352011-02-02 Joel Brobecker <brobecker@adacore.com>
2736
2737 * configure.ac: Work around non-GNU sed limitation when computing
2738 python version number.
2739 * configure: Regenerate.
2740
600ea1be
JK
27412011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 Fix debug printing of TYPE_INSTANCE.
2744 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
2745 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2746
56c12414
JK
27472011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2748
2749 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
2750 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
2751 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
2752 * ada-operator.inc: Rename the file to ...
2753 * ada-operator.def: ... here, wrap all the entries by macro OP.
2754 * expprint.c (op_name_standard): Remove all the entries. Include
2755 "std-operator.def" instead.
2756 * expression.h (enum exp_opcode): Include "std-operator.def" and
2757 "ada-operator.def". Move all the entries ...
2758 * std-operator.def: ... here, wrap all the entries by macro OP.
2759
c52b559d
PP
27602011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2761
2762 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
2763 * breakpoint.c (remove_jit_event_breakpoints): New function.
2764 * jit.c (jit_descriptor_addr): Delete.
2765 (registering_code): Delete.
2766 (clear_int): Delete.
2767 (jit_inferior_data): New variable.
2768 (struct jit_inferior_data): New type.
2769 (get_jit_inferior_data): New function.
2770 (jit_inferior_data_cleanup): New function.
2771 (jit_read_descriptor): Adjust.
2772 (jit_register_code): Adjust.
2773 (jit_breakpoint_re_set_internal): New function; move code here ...
2774 (jit_inferior_init): ... from here.
2775 (jit_breakpoint_re_set): Adjust.
2776 (jit_reset_inferior_data_and_breakpoints): New function.
2777 (jit_inferior_created_observer): Adjust.
2778 (jit_inferior_exit_hook): Adjust.
2779 (jit_executable_changed_observer): New function.
2780 (jit_event_handler): Adjust.
2781 (_initialize_jit): Adjust.
2782
e839132d
MS
27832011-01-31 Michael Snyder <msnyder@vmware.com>
2784
2785 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
2786 line.
2787
47a80e90
TT
27882011-01-31 Tom Tromey <tromey@redhat.com>
2789
2790 PR python/12216:
2791 * python/python.c (execute_gdb_command): Call
2792 prevent_dont_repeat.
2793 * top.c (suppress_dont_repeat): New global.
2794 (dont_repeat): Use it.
2795 (prevent_dont_repeat): New function.
2796 * command.h (prevent_dont_repeat): Declare.
2797
45a43567
TT
27982011-01-31 Tom Tromey <tromey@redhat.com>
2799
2800 * infcmd.c (finish_backward): Use breakpoint_set_silent.
2801 * python/py-breakpoint.c (bppy_set_silent): Use
2802 breakpoint_set_silent.
2803 (bppy_set_thread): Use breakpoint_set_thread.
2804 (bppy_set_task): Use breakpoint_set_task.
2805 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
2806 (breakpoint_set_task): Declare.
2807 (make_breakpoint_silent): Remove.
2808 * breakpoint.c (breakpoint_set_silent): New function.
2809 (breakpoint_set_thread): Likewise.
2810 (breakpoint_set_task): Likewise.
2811 (make_breakpoint_silent): Remove.
2812
09d682a4
TT
28132011-01-31 Tom Tromey <tromey@redhat.com>
2814
2815 * breakpoint.h (user_breakpoint_p): Declare.
2816 * breakpoint.c (user_breakpoint_p): New function.
2817 (breakpoint_1): Use it.
2818 (save_breakpoints): Likewise.
2819
9c4ea6c5
JB
28202011-01-31 Joel Brobecker <brobecker@adacore.com>
2821
2822 * configure.ac: Add handling of Python distribution on Windows.
2823 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
2824 sysconfig variables are not defined, then do not use them.
2825 On Windows, if LIBPL is not defined, then use prefix + '/libs'
2826 instead. On Windows, return all paths using forward-slashes
2827 rather than backslashes.
2828
ac534cba
JB
28292011-01-31 Joel Brobecker <brobecker@adacore.com>
2830
2831 * configure.ac: Remove fallback behavior for building
2832 against Python. Remove tweaking of Python include path.
2833 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
2834 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
2835 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
2836 Always restore CPPFLAGS and LIBS after linking test.
2837 * configure: Regenerated.
2838 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
2839 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
2840 * python/python-internal.h: Adjust includes of Python .h files.
2841
c2f0d045
JB
28422011-01-31 Joel Brobecker <brobecker@adacore.com>
2843
2844 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
2845 in error message.
2846
6b0c4c1f
JB
28472011-01-31 Joel Brobecker <brobecker@adacore.com>
2848
2849 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
2850 value test.
2851
672c9795
YQ
28522011-01-31 Yao Qi <yao@codesourcery.com>
2853
2854 * arm-linux-nat.c: Update calls to regcache_register_status
2855 instead of regcache_valid_p.
2856 * aix-thread.c: Likewise.
2857 * i386gnu-nat.c: Likewise.
2858
80b23b6a
JK
28592011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2860
2861 Fix crash.
2862 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
2863 touching TYPE_FIELD_ARTIFICIAL.
2864
4cd712bd
RE
28652011-01-28 Richard Earnshaw <rearnsha@arm.com>
2866
2867 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
2868 Committers.
2869
ffd5ec24
PA
28702011-01-28 Pedro Alves <pedro@codesourcery.com>
2871
2872 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
2873 selected, don't try iterating over the traceframe's blocks.
2874 (tfile_has_stack): If there's no traceframe selected, then there's
2875 no stack.
2876 (tfile_has_registers): If there's no traceframe selected, then
2877 there's no registers.
2878
e8c9e0a1
PA
28792011-01-28 Pedro Alves <pedro@codesourcery.com>
2880
2881 * target.c (memory_xfer_partial): No need to restore shadows if we
2882 haven't read anything.
2883
de15c4ab
PA
28842011-01-28 Pedro Alves <pedro@codesourcery.com>
2885
2886 * mips-tdep.c (mips_print_register): Use get_frame_register_value
2887 and val_print_scalar_formatted.
2888
9f41c731
PA
28892011-01-27 Pedro Alves <pedro@codesourcery.com>
2890
2891 * tracepoint.c (tfile_read): New.
2892 (tfile_open): Use it.
2893 (tfile_get_traceframe_address): Use it.
2894 (tfile_trace_find): Use it.
2895 (walk_blocks_callback_func): New typedef.
2896 (match_blocktype): New function.
2897 (traceframe_walk_blocks): New function.
2898 (traceframe_find_block_type): New function.
2899 (tfile_fetch_registers, tfile_xfer_partial)
2900 (tfile_get_trace_state_variable_value): Use
2901 traceframe_find_block_type and tfile_read.
2902
cdefc55d
KB
29032011-01-26 Kevin Buettner <kevinb@redhat.com>
2904
2905 * remote-mips.c: Add internationalization mark ups. Remove
2906 trailing \n from already marked up strings.
2907
a81766d8
TT
29082011-01-26 Tom Tromey <tromey@redhat.com>
2909
2910 * python/py-prettyprint.c (print_string_repr): Clear
2911 'addressprint' option when calling val_print_string.
2912 (print_children): Handle Val_pretty_default. Clear 'addressprint'
2913 option when calling val_print_string.
2914
74aedc46
TT
29152011-01-26 Tom Tromey <tromey@redhat.com>
2916
2917 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2918 GDB_PY_LL_ARG.
2919 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2920 macros.
2921 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2922 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2923 (gdb_py_long_as_ulongest): New defines.
2924 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2925 (gdb_py_int_as_long): Declare.
2926 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2927 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2928 (valpy_long): Add comment.
2929 * python/py-utils.c (get_addr_from_python): Use
2930 gdb_py_long_as_ulongest. Handle overflow properly.
2931 (gdb_py_object_from_longest): New function.
2932 (gdb_py_object_from_ulongest): Likewise.
2933 (gdb_py_int_as_long): Likewise.
2934 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2935 * python/py-symtab.c (salpy_get_pc): Use
2936 gdb_py_long_from_ulongest.
2937 (salpy_get_line): Use PyInt_FromLong.
2938 * python/py-param.c (set_parameter_value): Use
2939 gdb_py_int_as_long.
2940 * python/py-lazy-string.c (stpy_get_address): Use
2941 gdb_py_long_from_ulongest.
2942 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2943 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2944 * python/py-breakpoint.c (bppy_set_thread): Use
2945 gdb_py_int_as_long.
2946 (bppy_set_task): Likewise.
2947 (bppy_set_ignore_count): Likewise.
2948 (bppy_set_hit_count): Likewise.
2949 * python/py-block.c (blpy_get_start): Use
2950 gdb_py_object_from_ulongest.
2951 (blpy_get_end): Likewise.
2952 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2953
e4f6d2ec
TJB
29542011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2955
2956 PR/symtab 11766:
2957 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2958 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2959 equality test for objfile, initialize addr_low if needed.
2960
b30aa278
PA
29612011-01-25 Pedro Alves <pedro@codesourcery.com>
2962
2963 * tui/tui-regs.c (tui_register_format): Remove dead code.
2964
ab2188aa
PA
29652011-01-25 Pedro Alves <pedro@codesourcery.com>
2966
2967 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2968 instead of print_scalar_formatted.
2969 (print_scalar_formatted): Don't handle 's' format strings here,
2970 and add an assertion that we never see such format here.
2971 * valprint.h (val_print_scalar_formatted): Declare.
2972 * valprint.c (val_print_scalar_formatted): New.
2973 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2974 instead of print_scalar_formatted.
2975 * jv-valprint.c (java_val_print): Ditto.
2976 * p-valprint.c (pascal_val_print): Ditto.
2977 * ada-valprint.c (ada_val_print_1): Ditto.
2978 * f-valprint.c (f_val_print): Ditto.
2979 * infcmd.c (registers_info): Ditto.
2980 * m2-valprint.c (m2_val_print): Ditto.
2981
66d61a4c
PA
29822011-01-25 Pedro Alves <pedro@codesourcery.com>
2983
2984 * m2-valprint.c (print_unbounded_array): Pass
2985 value_contents_for_printing rather than value_contents, to
2986 m2_print_array_contents. Also pass in the value.
2987
831adc1f
JK
29882011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2989
2990 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2991 (save_gdb_index_command): Switch to .gdb_index version 4.
2992
20622269
PA
29932011-01-25 Pedro Alves <pedro@codesourcery.com>
2994
2995 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2996 than frame_register, and always pass a valid value to val_print.
2997
585fdaa1
PA
29982011-01-25 Pedro Alves <pedro@codesourcery.com>
2999
3000 Centralize printing "<optimized out>".
3001
3002 * valprint.h (val_print_optimized_out): Declare.
3003 * cp-valprint.c (cp_print_value_fields): Use
3004 val_print_optimized_out.
3005 * jv-valprint.c (java_print_value_fields): Ditto.
3006 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3007 * printcmd.c (print_formatted): Ditto.
3008 * valprint.c (valprint_check_validity): Ditto.
3009 (value_check_printable): Ditto.
3010 (val_print_optimized_out): New.
3011
29ec5263
PA
30122011-01-25 Pedro Alves <pedro@codesourcery.com>
3013
3014 * infcmd.c (default_print_registers_info): Allocate values so to
3015 never pass a NULL value to val_print.
3016
de4127a3
PA
30172011-01-25 Pedro Alves <pedro@codesourcery.com>
3018
3019 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3020 boolean. Make sure to always pass a value that matches the
3021 contents buffer to callees. Preserve `address' for following
3022 iterations.
3023 * value.c (value_contents_for_printing_const): New.
3024 (value_address): Constify value argument.
3025 * value.h (value_contents_for_printing_const): Declare.
3026 (value_address): Constify value argument.
3027
ee99023e
PA
30282011-01-25 Pedro Alves <pedro@codesourcery.com>
3029
3030 * regcache.c (struct regcache_descr): Rename
3031 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3032 and sizeof_cooked_register_valid_p to
3033 sizeof_cooked_register_status.
3034 (init_regcache_descr): Adjust.
3035 (struct regcache): Rename register_valid_p field to
3036 register_status.
3037 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3038 (do_cooked_read): Adjust.
3039 (regcache_valid_p): Rename to ...
3040 (regcache_register_status): ... this. Adjust.
3041 (regcache_invalidate): Adjust.
3042 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3043 Adjust.
3044 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3045 as unavailable, not valid.
3046 (regcache_dump): Adjust.
3047 * regcache.h (enum register_status): New.
3048 (regcache_register_status): Declare.
3049 (regcache_invalidate): Delete declaration.
3050 * corelow.c (get_core_registers): Adjust.
3051 * tracepoint.c (tfile_fetch_registers): Adjust.
3052 * trad-frame.c (REG_VALUE): Rename to ...
3053 (TF_REG_VALUE): ... this.
3054 (REG_UNKNOWN): Rename to ...
3055 (TF_REG_UNKNOWN): ... this.
3056 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3057 * mi/mi-main.c (register_changed_p): Adjust.
3058
99e42fd8
PA
30592011-01-25 Pedro Alves <pedro@codesourcery.com>
3060
3061 * regcache.c (struct regcache_descr): Remove outdated comment.
3062 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3063 overallocate hack.
3064 (regcache_xmalloc): Rename to ...
3065 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3066 Allocate the regcache type accordingly.
3067 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3068 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3069 cooked registers, not raw.
3070 (regcache_dup_no_passthrough): Delete.
3071 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3072 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3073 mention obsolete write_register_bytes.
3074 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3075
f7605bc2
PA
30762011-01-25 Pedro Alves <pedro@codesourcery.com>
3077
3078 Stop remote_read_bytes from handling partial reads itself.
3079
3080 * remote-fileio.c: Include target.h.
3081 (remote_fileio_write_bytes): Delete.
3082 (remote_fileio_func_open, remote_fileio_func_write)
3083 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3084 target_read_memory.
3085 (remote_fileio_func_stat): Use target_read_memory and
3086 target_write_memory.
3087 (remote_fileio_func_gettimeofday): Use target_write_memory.
3088 (remote_fileio_func_system): Use target_read_memory.
3089 * remote.c (remote_write_bytes): Make it static.
3090 (remote_read_bytes): Don't handle partial reads here.
3091 * remote.h (remote_read_bytes): Delete declaration.
3092
efc0eabd
PA
30932011-01-25 Pedro Alves <pedro@codesourcery.com>
3094
3095 Simplify XML parsing a bit.
3096
3097 * xml-support.h (gdb_xml_parse_quick): Declare.
3098 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3099 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3100 parameter.
3101 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3102 gdb_xml_create_parser_and_cleanup_1.
3103 (gdb_xml_parse_quick): New.
3104 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3105 * osdata.c (osdata_parse): Ditto.
3106 * remote.c (remote_threads_info): Ditto.
3107 * solib-target.c (solib_target_parse_libraries): Ditto.
3108 * xml-syscall.c (syscall_parse_xml): Ditto.
3109 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3110
314d366a
KB
31112011-01-24 Kevin Buettner <kevinb@redhat.com>
3112
3113 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3114 with remote-mips.o added to gdb_target_obs.
3115 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3116
a491d753
PA
31172011-01-24 Pedro Alves <pedro@codesourcery.com>
3118
3119 * ada-valprint.c (val_print_packed_array_elements): Pass the
3120 correct struct value to val_print.
3121 (ada_val_print_1): Ditto.
3122
490f124f
PA
31232011-01-24 Pedro Alves <pedro@codesourcery.com>
3124
3125 Don't lose embedded_offset in printing routines throughout.
3126
3127 * valprint.h (val_print_array_elements): Change prototype.
3128 * valprint.c (val_print_array_elements): Add `embedded_offset'
3129 parameter, and adjust to pass it down to val_print, while passing
3130 `valaddr' or `address' unmodified. Take embedded_offset into
3131 account when checking repetitions.
3132 * c-valprint.c (c_val_print): Pass embedded_offset to
3133 val_print_array_elements instead of adjusting `valaddr' and
3134 `address'.
3135 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3136 embedded_offset to val_print_array_elements instead of adjusting
3137 `valaddr'.
3138 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3139 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3140 val_print_array_elements and pascal_object_print_value_fields
3141 instead of adjusting `valaddr'.
3142 (pascal_object_print_value_fields): Add `offset' parameter, and
3143 adjust to use it.
3144 (pascal_object_print_value): Add `offset' parameter, and adjust to
3145 use it.
3146 (pascal_object_print_static_field): Use
3147 value_contents_for_printing/value_embedded_offset, rather than
3148 value_contents.
3149 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3150 parameter, and adjust to use it. Use
3151 value_contents_for_printing/value_embedded_offset, rather than
3152 value_contents.
3153 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3154 (ada_val_print_array): Add `offset' parameter, and adjust to use
3155 it.
3156 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3157 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3158 Instead work with offsets. Use
3159 value_contents_for_printing/value_embedded_offset, rather than
3160 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3161 and use value_from_pointer to extract a target pointer, rather
3162 than value_from_longest.
3163 (print_variant_part): Add `offset' parameter. Replace
3164 `outer_valaddr' parameter by a new `outer_offset' parameter.
3165 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3166 (ada_value_print): Use
3167 value_contents_for_printing/value_embedded_offset, rather than
3168 value_contents.
3169 (print_record): Add `offset' parameter, and adjust to pass it
3170 down.
3171 (print_field_values): Add `offset' parameter. Replace
3172 `outer_valaddr' parameter by a new `outer_offset' parameter.
3173 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3174 Use value_contents_for_printing/value_embedded_offset, rather than
3175 value_contents.
3176 * d-valprint.c (dynamic_array_type): Use
3177 value_contents_for_printing/value_embedded_offset, rather than
3178 value_contents.
3179 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3180 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3181 (java_print_value_fields): Take `offset' into account. Don't
3182 re-adjust `valaddr'. Instead pass down adjusted offsets.
3183 (java_val_print): Take `embedded_offset' into account. Pass it to
3184 java_print_value_fields.
3185 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3186 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3187 down adjusted offsets.
3188 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3189 (f_val_print): Take `embedded_offset' into account.
3190
7bfc9434
JB
31912011-01-21 Joel Brobecker <brobecker@adacore.com>
3192
3193 * inflow.c: Include "gdbcmd.h".
3194 (interactive_mode): New static global, moved here from top.c.
3195 (show_interactive_mode): New function, moved here from top.c.
3196 use gdb_has_a_terminal instead of input_from_terminal_p to
3197 determine the current mode.
3198 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3199 setting.
3200 (_initialize_inflow): Add the "set/show interactive-mode"
3201 commands. Moved here from top.c, after having adjusted slightly
3202 the help text.
3203 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3204 to inflow.c.
3205 (input_from_terminal_p): Remove handling of "interactive-mode"
3206 setting, moved to infow.c.
3207 (init_main): Remove creation of the "set/show interactive-mode"
3208 commands, moved to inflow.c.
3209
44603653
JB
32102011-01-19 Joel Brobecker <brobecker@adacore.com>
3211
3212 * NEWS: Add entry for native ia64-hpux support.
3213
4694da01
TT
32142011-01-19 Tom Tromey <tromey@redhat.com>
3215
3216 PR mi/8618:
3217 * thread.c (free_thread): Free 'name'.
3218 (print_thread_info): Emit thread name. Change CLI output.
3219 (thread_name_command): New function.
3220 (do_captured_thread_select): Emit newline.
3221 (_initialize_thread): Register 'thread name' command.
3222 * target.h (struct target_ops) <to_thread_name>: New field.
3223 (target_thread_name): New macro.
3224 * target.c (update_current_target): Handle to_thread_name.
3225 * python/py-infthread.c (thpy_get_name): New function.
3226 (thpy_set_name): Likewise.
3227 (thread_object_getset): Add "name".
3228 * linux-nat.c (linux_nat_thread_name): New function.
3229 (linux_nat_add_target): Set to_thread_name.
3230 * gdbthread.h (struct thread_info) <name>: New field.
3231
10d44370
JB
32322011-01-18 Joel Brobecker <brobecker@adacore.com>
3233
3234 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3235 (ada_val_print_1): Likewise.
3236
e3acb115
JB
32372011-01-18 Joel Brobecker <brobecker@adacore.com>
3238
3239 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3240 upper limit address is not greater than the function end address
3241 when the upper limit could not be computed using the debugging
3242 info.
3243
dc92e161
TT
32442011-01-17 Tom Tromey <tromey@redhat.com>
3245
3246 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3247 get_regcomp_error.
3248 * utils.c: Include gdb_regex.h.
3249 (do_regfree_cleanup): New function.
3250 (make_regfree_cleanup): Likewise.
3251 (get_regcomp_error): Likewise.
3252 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3253
f55af66d
TT
32542011-01-17 Tom Tromey <tromey@redhat.com>
3255
3256 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3257 re_compile_fastmap.
3258
a5a44b53
PM
32592011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3260
3261 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3262 for internal variables.
3263 (last_was_structop): New static variable.
3264 (COMPLETE): New token.
3265 (field_exp): New rule to group all '.' suffix handling.
3266 Add mark_struct_expression calls when approriate to be able
3267 to correctly find fields for completion.
3268 (yylex): Adapt to handle field completion and set INTVAR when
3269 required.
3270
2c291032
YQ
32712011-01-14 Yao Qi <yao@codesourcery.com>
3272
3273 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3274 save_reggroup, restore_reggroup and all_reggroup.
3275
447b483c
JB
32762011-01-14 Joel Brobecker <brobecker@adacore.com>
3277
3278 * ada-valprint. (ada_printchar): Use the correct type length
3279 in call to ada_emit_char.
3280 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3281
7b64a93b
PM
32822011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3283
3284 * solib-som.h (hpux_major_release): Declare variable here.
3285 * solib-som.c: Remove <sys/utsname.h> header.
3286 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3287 (hpux_major_release): Make global, change default value to
3288 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 3289 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
3290 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3291 Add "solib-som.h" header.
3292 (set_hpux_major_release): New function.
3293 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3294
4e18c053
MF
32952011-01-14 Mike Frysinger <vapier@gentoo.org>
3296
3297 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3298
a9df6b22
JB
32992011-01-14 Joel Brobecker <brobecker@adacore.com>
3300
3301 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3302 new-line at end of warning message.
3303 (ia64_hpux_store_register): Remove trailing new-line at end of
3304 error message.
3305 * ia64-hpux-tdep.c: Rephrase comment.
3306 * solib-ia64-hpux.c (struct dld_info): Change type of field
3307 dld_flags from "long long" to ULONGEST.
3308
ecb956dd
PA
33092011-01-14 Pedro Alves <pedro@codesourcery.com>
3310
3311 * target.h (deprecated_child_ops): Delete declaration.
3312 * target.c (deprecated_child_ops): Delete definition.
3313
76adfcae
PA
33142011-01-14 Pedro Alves <pedro@codesourcery.com>
3315
3316 * Makefile.in (hpux-thread.o): Delete rule.
3317 * configure.ac: Don't check for HPUX DCE threads support.
3318 * configure, config.in: Regenerate.
3319 * hppa-hpux-nat.c (child_suppress_run): Delete.
3320 (hppa_hpux_child_can_run): Delete.
3321 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3322 * hpux-thread.c: Delete.
3323
042e866e
JB
33242011-01-13 Joel Brobecker <brobecker@adacore.com>
3325
3326 * hpux-thread.c (hpux_pid_to_str): Delete.
3327
4ffa5a33
JB
33282011-01-13 Joel Brobecker <brobecker@adacore.com>
3329
3330 * ada-valprint.c (ada_emit_char): Remove strange code.
3331 Check that c is <= UCHAR_MAX before passing it to isascii.
3332 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3333
de8fa76c
JB
33342011-01-13 Joel Brobecker <brobecker@adacore.com>
3335
3336 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3337 to the case where instream is stdin.
3338
c4de7027
JB
33392011-01-13 Joel Brobecker <brobecker@adacore.com>
3340
3341 * ia64-tdep.h (struct regcache): Forward declare.
3342 (struct ia64_infcall_ops): New struct type.
3343 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3344 and "infcall_ops".
3345 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3346 Renames ia64_find_global_pointer.
3347 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3348 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3349 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3350 methods.
3351 (ia64_infcall_ops): New static global constant.
3352 (ia64_gdbarch_init): Set tdep->infcall_ops.
3353 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3354 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3355 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3356 (ia64_hpux_dummy_code): New static global constant.
3357 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3358 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3359 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3360 New function.
3361 (ia64_hpux_infcall_ops): New static global constant.
3362 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3363 for inferior function calls to work properly on ia64-hpux.
3364
77ca787b
JB
33652011-01-13 Joel Brobecker <brobecker@adacore.com>
3366
3367 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3368 * ia64-tdep.h (struct frame_info): forward declaration.
3369 (struct gdbarch_tdep): Add field size_of_register_frame.
3370 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3371 to determine the size of the register frame.
3372 (ia64_size_of_register_frame): New function.
3373 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3374 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3375 (IA64_HPUX_UREG_REASON): New macro.
3376 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3377 New functions.
3378 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3379 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3380 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3381 objects.
3382
92c9a463
JB
33832011-01-13 Joel Brobecker <brobecker@adacore.com>
3384
3385 Add support for ia64-hpux.
3386 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3387 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3388
3389 * configure.host: Add handling for ia64-hpux hosts. Add associated
3390 floatformats.
3391 * configure.tgt: Add handling for ia64-hpux targets.
3392 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3393 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3394 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3395
f688d93f
JB
33962011-01-13 Joel Brobecker <brobecker@adacore.com>
3397
3398 [ttrace] Compute thread list immediately after attach.
3399 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3400 New subprogram.
3401 (inf_ttrace_attach): Use it.
3402
1b89e62f
JB
34032011-01-13 Joel Brobecker <brobecker@adacore.com>
3404
3405 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3406 if we could not determine the frame's function address. Instead,
3407 use the frame's PC, and then continue.
3408
3e5e6e2a
JB
34092011-01-13 Joel Brobecker <brobecker@adacore.com>
3410
3411 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3412 not already defined.
3413
825d6d8a
JB
34142011-01-13 Joel Brobecker <brobecker@adacore.com>
3415
3416 * ia64-tdep.c (ia64_struct_type_p): New function.
3417 (ia64_extract_return_value): Handle integral values that are
3418 less than 8 bytes long.
3419 (ia64_push_dummy_call): Likewise.
3420
7458e667
JB
34212011-01-13 Joel Brobecker <brobecker@adacore.com>
3422
3423 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3424 floatformat_ia64_ext.
3425 (floatformat_ia64_ext_big): New static const.
3426 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3427
1b05df00
TT
34282011-01-12 Tom Tromey <tromey@redhat.com>
3429
3430 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3431 messages.
3432 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3433 (mi_cmd_thread_list_ids): Likewise.
3434 (mi_cmd_data_list_changed_registers): Likewise.
3435 (mi_cmd_data_list_register_values): Likewise.
3436 (mi_cmd_data_write_register_values): Likewise.
3437 (mi_cmd_data_evaluate_expression): Likewise.
3438 (mi_cmd_data_read_memory): Likewise.
3439 (mi_cmd_data_read_memory_bytes): Likewise.
3440 (mi_cmd_data_write_memory): Likewise.
3441 (mi_cmd_enable_timings): Likewise.
3442 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3443 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3444 (mi_cmd_var_delete): Likewise.
3445 (mi_cmd_var_set_format): Likewise.
3446 (mi_cmd_var_show_format): Likewise.
3447 (mi_cmd_var_info_num_children): Likewise.
3448 (mi_cmd_var_list_children): Likewise.
3449 (mi_cmd_var_info_type): Likewise.
3450 (mi_cmd_var_info_expression): Likewise.
3451 (mi_cmd_var_show_attributes): Likewise.
3452 (mi_cmd_var_assign): Likewise.
3453 (mi_cmd_var_update): Likewise.
3454 (mi_cmd_enable_pretty_printing): Likewise.
3455 (mi_cmd_var_set_update_range): Likewise.
3456 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3457 messages.
3458 (mi_cmd_target_file_put): Likewise.
3459 (mi_cmd_target_file_delete): Likewise.
3460 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3461 messages.
3462 (mi_cmd_stack_info_depth): Likewise.
3463 (mi_cmd_stack_list_locals): Likewise.
3464 (mi_cmd_stack_list_args): Likewise.
3465 (mi_cmd_stack_select_frame): Likewise.
3466 (mi_cmd_stack_select_frame): Likewise.
3467 (mi_cmd_stack_info_frame): Likewise.
3468 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3469 messages.
3470 (mi_cmd_file_list_exec_source_files): Likewise.
3471 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3472 (mi_cmd_env_cd): Likewise.
3473 (mi_cmd_env_path): Likewise.
3474 (mi_cmd_env_dir): Likewise.
3475 (mi_cmd_inferior_tty_show): Likewise.
3476 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3477 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3478 (mi_cmd_break_watch): Likewise.
3479
ad422571
TJB
34802011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3481
3482 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3483 (ppc_linux_insert_hw_breakpoint): Likewise.
3484 (ppc_linux_remove_hw_breakpoint): Likewise.
3485 (ppc_linux_insert_watchpoint): Likewise.
3486
c2ff108b
JK
34872011-01-12 Andrew Burgess <aburgess@broadcom.com>
3488 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 PR fortran/11104 and DWARF unbound arrays detection.
3491 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3492 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3493 unspecified upper bound.
3494 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3495 variables array_size_array, tmp_type and offset_item. New variable
3496 array. Remove call to f77_get_upperbound. New variables array_type
3497 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3498 the final call to deprecated_set_value_type.
3499
41e8491f
JK
35002011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 Make value allocations more lazy.
3503 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3504 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 3505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
3506 instead of allocate_value and set_value_lazy.
3507 * findvar.c (value_of_register_lazy): Likewise.
3508 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 3509 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
3510 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3511 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3512 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3513 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3514 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3515 the end, remove set_value_lazy there.
3516 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3517 instead of allocate_value and set_value_lazy when possible.
3518 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3519 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3520 of allocate_value and set_value_lazy.
3521 (value_from_contents_and_address): Use allocate_value_lazy instead of
3522 allocate_value and set_value_lazy when possible.
3523
b716877b
AB
35242011-01-12 Andrew Burgess <aburgess@broadcom.com>
3525
3526 * disasm.c (dump_insns): Support dumping opcodes for MI.
3527 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3528 dumping of instruction opcodes.
3529
d5ae309f
JB
35302011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3531
3532 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3533 appropiately.
3534
98871305
TT
35352011-01-11 Tom Tromey <tromey@redhat.com>
3536
3537 * thread.c (do_captured_thread_select): Emit newline before
3538 printing frame.
3539
c378eb4e
MS
35402011-01-11 Michael Snyder <msnyder@vmware.com>
3541
3542 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3543 * score-tdep.c: Ditto.
3544 * score-tdep.h: Ditto.
3545 * ser-base.c: Ditto.
3546 * ser-go32.c: Ditto.
3547 * serial.c: Ditto.
3548 * serial.h: Ditto.
3549 * ser-mingw.c: Ditto.
3550 * ser-pipe.c: Ditto.
3551 * ser-tcp.c: Ditto.
3552 * ser-unix.c: Ditto.
3553 * sh64-tdep.c: Ditto.
3554 * shnbsd-nat.c: Ditto.
3555 * sh-tdep.c: Ditto.
3556 * sh-tdep.h: Ditto.
3557 * solib.c: Ditto.
3558 * solib-darwin.c: Ditto.
3559 * solib-frv.c: Ditto.
3560 * solib.h: Ditto.
3561 * solib-irix.c: Ditto.
3562 * solib-osf.c: Ditto.
3563 * solib-pa64.c: Ditto.
3564 * solib-som.c: Ditto.
3565 * solib-spu.c: Ditto.
3566 * solib-sunos.c: Ditto.
3567 * solib-svr4.c: Ditto.
3568 * solist.h: Ditto.
3569 * sol-thread.c: Ditto.
3570 * somread.c: Ditto.
3571 * source.c: Ditto.
3572 * source.h: Ditto.
3573 * sparc64-linux-tdep.c: Ditto.
3574 * sparc64-tdep.c: Ditto.
3575 * sparc-linux-nat.c: Ditto.
3576 * sparc-linux-tdep.c: Ditto.
3577 * sparc-sol2-nat.c: Ditto.
3578 * sparc-sol2-tdep.c: Ditto.
3579 * sparc-tdep.c: Ditto.
3580 * sparc-tdep.h: Ditto.
3581 * spu-tdep.c: Ditto.
3582 * stabsread.c: Ditto.
3583 * stabsread.h: Ditto.
3584 * stack.c: Ditto.
3585 * symfile.c: Ditto.
3586 * symfile.h: Ditto.
3587 * symmisc.c: Ditto.
3588 * symtab.c: Ditto.
3589 * symtab.h: Ditto.
3590 * target.c: Ditto.
3591 * target-descriptions.c: Ditto.
3592 * target-descriptions.h: Ditto.
3593 * target.h: Ditto.
3594 * target-memory.c: Ditto.
3595 * terminal.h: Ditto.
3596 * thread.c: Ditto.
3597 * top.c: Ditto.
3598 * tracepoint.c: Ditto.
3599 * tracepoint.h: Ditto.
3600 * trad-frame.h: Ditto.
3601 * typeprint.c: Ditto.
3602
581e13c1
MS
36032011-01-11 Michael Snyder <msnyder@vmware.com>
3604
3605 * ui-file.c: Comment cleanup, mostly periods and spaces.
3606 * ui-file.h: Ditto.
3607 * ui-out.c: Ditto.
3608 * ui-out.h: Ditto.
3609 * utils.c: Ditto.
3610 * v850-tdep.c: Ditto.
3611 * valarith.c: Ditto.
3612 * valops.c: Ditto.
3613 * valprint.c: Ditto.
3614 * valprint.h: Ditto.
3615 * value.c: Ditto.
3616 * value.h: Ditto.
3617 * varobj.c: Ditto.
3618 * varobj.h: Ditto.
3619 * vax-tdep.c: Ditto.
3620 * vec.c: Ditto.
3621 * vec.h: Ditto.
3622 * version.h: Ditto.
3623 * windows-nat.c: Ditto.
3624 * windows-tdep.c: Ditto.
3625 * xcoffread.c: Ditto.
3626 * xcoffsolib.c: Ditto.
3627 * xml-support.c: Ditto.
3628 * xstormy16-tdep.c: Ditto.
3629 * xtensa-tdep.c: Ditto.
3630 * xtensa-tdep.h: Ditto.
3631
90e4670f
TJB
36322011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3633
3634 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3635 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3636
e09342b5
TJB
36372011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3638 Thiago Jung Bauermann <bauerman@br.ibm.com>
3639
3640 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 3641 * breakpoint.h
e09342b5
TJB
3642 (struct breakpoint_ops) <resources_needed>: New method.
3643 Initialize to NULL in all existing breakpoint_ops instances.
3644 (struct breakpoint) <exact>: New field.
3645 (target_exact_watchpoints): Declare external global.
3646 * breakpoint.c (target_exact_watchpoints): New global flag.
3647 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3648 b->enable_state to bp_enabled before calling
3649 hw_watchpoint_used_count.
3650 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3651 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3652 if available.
3653 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3654 if the watchpoint is exact.
3655 (resources_needed_watchpoint): New function.
3656 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3657 (watch_command_1): Set b->exact if the user asked for an exact
3658 watchpoint and one can be set.
3659 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3660 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3661 the user asks for an exact watchpoint and one can be set. Return
3662 number of needed debug registers to watch the expression.
3663 * gdbtypes.c (is_scalar_type): New function, based on
3664 valprint.c:scalar_type_p.
3665 (is_scalar_type_recursive): New function.
3666 * gdbtypes.h (is_scalar_type_recursive): Declare.
3667 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3668 handle regions when ranged watchpoints are available.
3669 (create_watchpoint_request): New function.
3670 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3671 create_watchpoint_request.
3672 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3673 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3674 `set powerpc' and `show powerpc' commands.
3675 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3676 Mention documentation comment in the target macro.
3677 (target_region_ok_for_hw_watchpoint): Document return value.
3678
9fa40276
TJB
36792011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3680
3681 * breakpoint.c (update_watchpoint): Decide on using a software or
3682 hardware watchpoint after the bp_locations are created.
3683
77b06cd7
TJB
36842010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3685
3686 Convert hardware watchpoints to use breakpoint_ops.
3687 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
3688 <insert_location>: ... this. Return int instead of void.
3689 Accept pointer to struct bp_location instead of pointer to
3690 struct breakpoint. Adapt all implementations.
f2eb0bc8 3691 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
3692 <remove_location>: ... this. Accept pointer to struct bp_location
3693 instead of pointer to struct breakpoint. Adapt all implementations.
3694 * breakpoint.c (insert_catchpoint): Delete function.
3695 (insert_bp_location): Call the watchpoint or catchpoint's
3696 breakpoint_ops.insert method.
3697 (remove_breakpoint_1): Call the watchpoint or catchpoint's
3698 breakpoint_ops.remove method.
3699 (insert_watchpoint, remove_watchpoint): New functions.
3700 (watchpoint_breakpoint_ops): New structure.
3701 (watch_command_1): Initialize the OPS field.
3702 * inf-child.c (inf_child_insert_fork_catchpoint)
3703 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
3704 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
3705 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
3706 Delete functions.
3707 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
3708 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
3709 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
3710 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
3711 * target.c (update_current_target): Change default implementation of
3712 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
3713 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3714 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
3715 to_set_syscall_catchpoint to return_one.
3716 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
3717 (debug_to_insert_exec_catchpoint): Report return value.
3718 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
3719 (to_insert_exec_catchpoint): Change declaration to return int instead
3720 of void.
3721
9b20d036
MS
37222011-01-11 Michael Snyder <msnyder@vmware.com>
3723
3724 * arm-tdep.c: Internationalization.
3725 * c-lang.c: Ditto.
3726 * charset.c: Ditto.
3727 * fork-child.c: Ditto.
3728 * nto-procfs.c: Ditto.
3729 * ppc-sysv-tdep.c: Ditto.
3730 * procfs.c: Ditto.
3731 * remote-mips.c: Ditto.
3732 * remote.c: Ditto.
3733 * rs6000-nat.c: Ditto.
3734 * rs6000-tdep.c: Ditto.
3735 * target.c: Ditto.
3736 * valops.c: Ditto.
3737 * value.c: Ditto.
3738 * xml-support.c: Ditto.
3739 * mi/mi-cmd-break.c: Ditto.
3740 * mi/mi-cmd-var.c: Ditto.
3741 * mi/mi-interp.c: Ditto.
3742 * mi/mi-main.c: Ditto.
3743
dae477fe
AB
37442011-01-11 Andrew Burgess <aburgess@broadcom.com>
3745
3746 * remote-sim.c (gdbsim_store_register): Update API to
3747 sim_store_register to check more error conditions.
3748
0df8b418
MS
37492011-01-10 Michael Snyder <msnyder@vmware.com>
3750
3751 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
3752 * nto-tdep.c: Ditto.
3753 * nto-tdep.h: Ditto.
3754 * objc-exp.y: Ditto.
3755 * objc-lang.c: Ditto.
3756 * objfiles.c: Ditto.
3757 * objfiles.h: Ditto.
3758 * observer.c: Ditto.
3759 * opencl-lang.c: Ditto.
3760 * osabi.c: Ditto.
3761 * parse.c: Ditto.
3762 * parser-defs.h: Ditto.
3763 * p-exp.y: Ditto.
3764 * p-lang.c: Ditto.
3765 * posix-hdep.c: Ditto.
3766 * ppcbug-rom.c: Ditto.
3767 * ppc-linux-nat.c: Ditto.
3768 * ppc-linux-tdep.c: Ditto.
3769 * ppc-linux-tdep.h: Ditto.
3770 * ppcnbsd-tdep.c: Ditto.
3771 * ppcobsd-tdep.c: Ditto.
3772 * ppcobsd-tdep.h: Ditto.
3773 * ppc-sysv-tdep.c: Ditto.
3774 * ppc-tdep.h: Ditto.
3775 * printcmd.c: Ditto.
3776 * proc-abi.c: Ditto.
3777 * proc-flags.c: Ditto.
3778 * procfs.c: Ditto.
3779 * proc-utils.h: Ditto.
3780 * progspace.h: Ditto.
3781 * prologue-value.c: Ditto.
3782 * prologue-value.h: Ditto.
3783 * psympriv.h: Ditto.
3784 * psymtab.c: Ditto.
3785 * p-typeprint.c: Ditto.
3786 * p-valprint.c: Ditto.
3787 * ravenscar-sparc-thread.c: Ditto.
3788 * ravenscar-thread.c: Ditto.
3789 * ravenscar-thread.h: Ditto.
3790 * record.c: Ditto.
3791 * regcache.c: Ditto.
3792 * regcache.h: Ditto.
3793 * remote.c: Ditto.
3794 * remote-fileio.c: Ditto.
3795 * remote-fileio.h: Ditto.
3796 * remote.h: Ditto.
3797 * remote-m32r-sdi.c: Ditto.
3798 * remote-mips.c: Ditto.
3799 * remote-sim.c: Ditto.
3800 * rs6000-aix-tdep.c: Ditto.
3801 * rs6000-nat.c: Ditto.
3802 * rs6000-tdep.c: Ditto.
3803
0d7a18f7
MS
38042011-01-10 Michael Snyder <msnyder@vmware.com>
3805
3806 * charset.c (validate): Internationalization.
3807 * coffread.c (read_one_sym): Ditto.
3808 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
3809 * h8300-tdep.c (H8300_extract_return_value): Ditto.
3810 * inflow.c (new_tty): Ditto.
3811 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
3812 * m32c-tdep.c (m32c_return_value): Ditto.
3813 * mep-tdep.c (mep_store_return_value): Ditto.
3814 * score-tdep.c (score7_fetch_insn): Ditto.
3815 * ser-mingw.c (pipe_windows_open): Ditto.
3816 * sh64-tdep.c (sh64_extract_return_value): Ditto.
3817 * spu-tdep.c (spu_register_type): Ditto.
3818 * tracepoint.c (trace_find_command): Ditto.
3819 * valarith.c (value_pos): Ditto.
3820
9a153e0b
JB
38212011-01-10 Joel Brobecker <brobecker@adacore.com>
3822
3823 * ada-valprint.c (printstr): Minor comment reformatting.
3824
35ecd2d6
MS
38252011-01-08 Michael Snyder <msnyder@vmware.com>
3826
3827 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
3828 markup.
3829
1777feb0
MS
38302011-01-08 Michael Snyder <msnyder@vmware.com>
3831
3832 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
3833 * hppa-hpux-tdep.c: Ditto.
3834 * hppa-linux-nat.c: Ditto.
3835 * hppa-linux-tdep.c: Ditto.
3836 * hppanbsd-tdep.c: Ditto.
3837 * hppa-tdep.c: Ditto.
3838 * hppa-tdep.h: Ditto.
3839 * hpux-thread.c: Ditto.
3840 * i386-cygwin-tdep.c: Ditto.
3841 * i386-darwin-nat.c: Ditto.
3842 * i386gnu-nat.c: Ditto.
3843 * i386-linux-nat.c: Ditto.
3844 * i386-linux-tdep.c: Ditto.
3845 * i386-nat.c: Ditto.
3846 * i386-nat.h: Ditto.
3847 * i386nbsd-tdep.c: Ditto.
3848 * i386-sol2-nat.c: Ditto.
3849 * i386-stub.c: Ditto.
3850 * i386-tdep.c: Ditto.
3851 * i386-tdep.h: Ditto.
3852 * i387-tdep.c: Ditto.
3853 * ia64-linux-nat.c: Ditto.
3854 * ia64-linux-tdep.c: Ditto.
3855 * ia64-tdep.c: Ditto.
3856 * infcall.c: Ditto.
3857 * infcall.h: Ditto.
3858 * infcmd.c: Ditto.
3859 * inferior.c: Ditto.
3860 * inferior.h: Ditto.
3861 * infloop.c: Ditto.
3862 * inflow.c: Ditto.
3863 * infrun.c: Ditto.
3864 * interps.c: Ditto.
3865 * interps.h: Ditto.
3866 * iq2000-tdep.c: Ditto.
3867 * irix5-nat.c: Ditto.
3868 * jit.c: Ditto.
3869 * jit.h: Ditto.
3870 * jv-exp.y: Ditto.
3871 * jv-lang.c: Ditto.
3872 * jv-lang.h: Ditto.
3873 * jv-typeprint.c: Ditto.
3874 * jv-valprint.c: Ditto.
3875 * language.c: Ditto.
3876 * language.h: Ditto.
3877 * linespec.c: Ditto.
3878 * linux-fork.c: Ditto.
3879 * linux-nat.c: Ditto.
3880 * linux-thread-db.c: Ditto.
3881 * lm32-tdep.c: Ditto.
3882
025bb325
MS
38832011-01-08 Michael Snyder <msnyder@vmware.com>
3884
3885 * m2-exp.y: Comment cleanup, mostly periods and spaces.
3886 * m2-lang.c: Ditto.
3887 * m2-typeprint.c: Ditto.
3888 * m2-valprint.c: Ditto.
3889 * m32c-tdep.c: Ditto.
3890 * m32r-linux-nat.c: Ditto.
3891 * m32r-rom.c: Ditto.
3892 * m32r-tdep.c: Ditto.
3893 * m32r-tdep.h: Ditto.
3894 * m68hc11-tdep.c: Ditto.
3895 * m58klinux-nat.c: Ditto.
3896 * m68k-tdep.c: Ditto.
3897 * m88k-tdep.c: Ditto.
3898 * m88k-tdep.h: Ditto.
3899 * machoread.c: Ditto.
3900 * macrocmd.c: Ditto.
3901 * macroexp.c: Ditto.
3902 * macrotab.c: Ditto.
3903 * main.c: Ditto.
3904 * maint.c: Ditto.
3905 * mdebugread.c: Ditto.
3906 * mdebugread.h: Ditto.
3907 * memattr.c: Ditto.
3908 * memattr.h: Ditto.
3909 * memory-map.h: Ditto.
3910 * mep-tdep.c: Ditto.
3911 * microblaze-rom.c: Ditto.
3912 * microblaze-tdep.c: Ditto.
3913 * minsyms.c: Ditto.
3914 * mips-irix-tdep.c: Ditto.
3915 * mips-linux-nat.c: Ditto.
3916 * mips-linux-tdep.c: Ditto.
3917 * mips-linux-tdep.h: Ditto.
3918 * mipsnbsd-nat.c: Ditto.
3919 * mipsnbsd-tdep.c: Ditto.
3920 * mipsread.c: Ditto.
3921 * mips-tdep.c: Ditto.
3922 * mips-tdep.h: Ditto.
3923 * mn10300-linux-tdep.c: Ditto.
3924 * mn10300-tdep.c: Ditto.
3925 * mn10300-tdep.h: Ditto.
3926 * monitor.c: Ditto.
3927 * monitor.h: Ditto.
3928 * moxie-tdep.c: Ditto.
3929 * moxie-tdep.h: Ditto.
3930 * mt-tdep.c: Ditto.
3931
1642781b
MF
39322011-01-08 Mike Frysinger <vapier@gentoo.org>
3933
3934 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3935
394b0adb
JB
39362011-01-08 Robert Millan <rmh@gnu.org>
3937
3938 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3939
b670013c
MS
39402011-01-07 Michael Snyder <msnyder@vmware.com>
3941
3942 * charset.c (_initialize_charset): Fix typo in string.
3943
a743e542
MS
39442011-01-07 Michael Snyder <msnyder@vmware.com>
3945
3946 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3947 for i18n.
f2eb0bc8 3948 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
3949 Split line so that operator goes to beginning of line.
3950 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3951 assignment out of if statement.
3952
0963b4bd
MS
39532011-01-07 Michael Snyder <msnyder@vmware.com>
3954
3955 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3956 * ada-lang.h: Ditto.
3957 * ada-tasks.c: Ditto.
3958 * ada-valprint.c: Ditto.
3959 * aix-threads.c: Ditto.
3960 * alpha-linux-nat.c: Ditto.
3961 * alpha-linux-tdep.c: Ditto.
3962 * alpha-mdebug-tdep.c: Ditto.
3963 * alpha-nat.c: Ditto.
3964 * alpha-osf1-tdep.c: Ditto.
3965 * alpha-tdep.c: Ditto.
3966 * alphabsd-nat.c: Ditto.
3967 * alphabsd-tdep.c: Ditto.
3968 * amd64-darwin-tdep.c: Ditto.
3969 * amd64-linux-nat.c: Ditto.
3970 * amd64-linux-tdep.c: Ditto.
3971 * amd64-sol2-tdep.c: Ditto.
3972 * amd64-tdep.c: Ditto.
3973 * amd64-fbsd-tdep.c: Ditto.
3974 * amd64-nbsd-tdep.c: Ditto.
3975 * amd64-obsd-tdep.c: Ditto.
3976 * amd64-linux-nat.c: Ditto.
3977 * amd64-linux-tdep.c: Ditto.
3978 * arm-tdep.c: Ditto.
3979 * arm-tdep.h: Ditto.
3980 * armnbsd-nat.c: Ditto.
3981 * avr-tdep.c: Ditto.
3982 * bfin-tdep.c: Ditto.
3983 * bsd-kvm.c: Ditto.
3984 * c-typeprintc: Ditto.
3985 * c-valprint.c: Ditto.
3986 * coff-pe-read.h: Ditto.
3987 * coffreead.c: Ditto.
3988 * cris-tdep.c: Ditto.
3989 * d-lang.c: Ditto.
3990 * darwin-nat-info.c: Ditto.
3991 * darwin-nat.c: Ditto.
3992 * dbug-rom.c: Ditto.
3993 * dbxread.c: Ditto.
3994 * dcache.c: Ditto.
3995 * dcache.h: Ditto.
3996 * dec-thread.c: Ditto.
3997 * defs.h: Ditto.
3998 * demangle.c: Ditto.
3999 * dicos-tdep.c: Ditto.
4000 * dictionary.c: Ditto.
4001 * dictionary.h: Ditto.
4002 * dink32-rom.c: Ditto.
4003 * disasm.c: Ditto.
4004 * doublest.c: Ditto.
4005 * dsrec.c: Ditto.
4006 * dummy-frame.c: Ditto.
4007 * dwarf2-frame.c: Ditto.
4008 * dwarf2expr.c: Ditto.
4009 * dwarf2loc.c: Ditto.
4010 * dwarf2read.c: Ditto.
4011 * elfread.c: Ditto.
4012 * environ.c: Ditto.
4013 * eval.c: Ditto.
4014 * event-top.h: Ditto.
4015 * exceptions.c: Ditto.
4016 * exceptions.h: Ditto.
4017 * exec.c: Ditto.
4018 * expprint.c: Ditto.
4019 * expression.h: Ditto.
4020 * f-exp.y: Ditto.
4021 * f-lang.c: Ditto.
4022 * f-lang.h: Ditto.
4023 * f-typeprint.c: Ditto.
4024 * f-valprint.c: Ditto.
4025 * fbsd-nat.c: Ditto.
4026 * findvar.c: Ditto.
4027 * fork-child.c: Ditto.
4028 * frame.c: Ditto.
4029 * frame.h: Ditto.
4030 * frv-linux-tdep.c: Ditto.
4031 * frv-tdep.c: Ditto.
4032 * gcore.c: Ditto.
4033 * gdb-stabs.h: Ditto.
4034 * gdb_assert.h: Ditto.
4035 * gdb_string.h: Ditto.
4036 * gdb_thread_db.h: Ditto.
4037 * gdb_wait.h: Ditto.
4038 * gdbarch.sh: Ditto.
4039 * gdbcore.h: Ditto.
4040 * gdbthread.h: Ditto.
4041 * gdbtypes.c: Ditto.
4042 * gdbtypes.h: Ditto.
4043 * gnu-nat.c: Ditto.
4044 * gnu-nat.h: Ditto.
4045 * gnu-v2-abi.c: Ditto.
4046 * gnu-v3-abi.c: Ditto.
4047 * go32-nat.c: Ditto.
4048 * gdbarch.c: Regenerate.
4049 * gdbarch.h: Regenerate.
4050
ac74f770
MS
40512011-01-07 Michael Snyder <msnyder@vmware.com>
4052
4053 * ax-gdb.c: Adjust some long output strings.
4054 * breakpoint.c: Ditto.
4055 * charset.c: Ditto.
4056 * cp-abi.c: Ditto.
4057 * infcall.c: Ditto.
4058 * infrun.c: Ditto.
4059 * linux-nat.c: Ditto.
4060 * solib-pa64.c: Ditto.
4061 * solib-som.c: Ditto.
4062
d8e22779
TT
40632011-01-06 Tom Tromey <tromey@redhat.com>
4064
4065 PR python/12367:
4066 * NEWS: Add item.
4067 * python/python.c (GdbMethods): Add "newest_frame" method.
4068 * python/python-internal.h (gdbpy_newest_frame): Declare.
4069 * python/py-frame.c (gdbpy_newest_frame): New function.
4070
a255712f
PP
40712010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4072
4073 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4074 * jit.c (jit_debug): New variable.
4075 (show_jit_debug): New function.
4076 (struct target_buffer): Use ULONGEST.
4077 (bfd_open_from_target_memory): Likewise.
4078 (jit_register_code, jit_inferior_init): Add debug output.
4079 (_initialize_jit): Register "debug jit" command.
4080
ccfc3d6e
TT
40812011-01-06 Tom Tromey <tromey@redhat.com>
4082
4083 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4084 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4085 and ARCH_FRAME.
4086
57126e4a
TT
40872011-01-06 Tom Tromey <tromey@redhat.com>
4088
4089 * python/py-frame.c (frapy_block): Use get_frame_block.
4090
16dfc9ce
JB
40912011-01-06 Joel Brobecker <brobecker@adacore.com>
4092
4093 Do not stop on SIGPRIO signals by default
4094 * infrun.c (_initialize_infrun): Unset signal_stop and
4095 signal_print for TARGET_SIGNAL_PRIO.
4096
b1ce2347
JB
40972011-01-06 Joel Brobecker <brobecker@adacore.com>
4098
4099 * ada-tasks.c: Fix style violation in comment.
4100
8f7e195f
JB
41012011-01-06 Joel Brobecker <brobecker@adacore.com>
4102
4103 * linespec.c (decode_compound, find_method): Remove trailing \n
4104 at end of error string.
4105 * solib-irix.c (irix_current_sos): Likewise.
4106 * varobj.c (uninstall_variable): Likewise.
4107
e9bdf92c
JB
41082011-01-06 Joel Brobecker <brobecker@adacore.com>
4109
4110 * copyright.py: New script.
4111 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4112 Launch emacs without exec'ing. Call copyright.py afterwards.
4113
3e43a32a
MS
41142011-01-05 Michael Snyder <msnyder@vmware.com>
4115
4116 * addrmap.c: Shorten lines of >= 80 columns.
4117 * arch-utils.c: Ditto.
4118 * arch-utils.h: Ditto.
4119 * ax-gdb.c: Ditto.
4120 * ax-general.c: Ditto.
4121 * bcache.c: Ditto.
4122 * blockframe.c: Ditto.
4123 * breakpoint.c: Ditto.
4124 * buildsym.c: Ditto.
4125 * c-lang.c: Ditto.
4126 * c-typeprint.c: Ditto.
4127 * charset.c: Ditto.
4128 * coffread.c: Ditto.
4129 * command.h: Ditto.
4130 * corelow.c: Ditto.
4131 * cp-abi.c: Ditto.
4132 * cp-namespace.c: Ditto.
4133 * cp-support.c: Ditto.
4134 * dbug-rom.c: Ditto.
4135 * dbxread.c: Ditto.
4136 * defs.h: Ditto.
4137 * dfp.c: Ditto.
4138 * dfp.h: Ditto.
4139 * dictionary.c: Ditto.
4140 * disasm.c: Ditto.
4141 * doublest.c: Ditto.
4142 * dwarf2-frame.c: Ditto.
4143 * dwarf2expr.c: Ditto.
4144 * dwarf2loc.c: Ditto.
4145 * dwarf2read.c: Ditto.
4146 * elfread.c: Ditto.
4147 * eval.c: Ditto.
4148 * event-loop.c: Ditto.
4149 * event-loop.h: Ditto.
4150 * exceptions.h: Ditto.
4151 * exec.c: Ditto.
4152 * expprint.c: Ditto.
4153 * expression.h: Ditto.
4154 * f-lang.c: Ditto.
4155 * f-valprint.c: Ditto.
4156 * findcmd.c: Ditto.
4157 * frame-base.c: Ditto.
4158 * frame-unwind.c: Ditto.
4159 * frame-unwind.h: Ditto.
4160 * frame.c: Ditto.
4161 * frame.h: Ditto.
4162 * gcore.c: Ditto.
4163 * gdb-stabs.h: Ditto.
4164 * gdb_assert.h: Ditto.
4165 * gdb_dirent.h: Ditto.
4166 * gdb_obstack.h: Ditto.
4167 * gdbcore.h: Ditto.
4168 * gdbtypes.c: Ditto.
4169 * gdbtypes.h: Ditto.
4170 * inf-ttrace.c: Ditto.
4171 * infcall.c: Ditto.
4172 * infcmd.c: Ditto.
4173 * inflow.c: Ditto.
4174 * infrun.c: Ditto.
4175 * inline-frame.h: Ditto.
4176 * language.c: Ditto.
4177 * language.h: Ditto.
4178 * libunwind-frame.c: Ditto.
4179 * libunwind-frame.h: Ditto.
4180 * linespec.c: Ditto.
4181 * linux-nat.c: Ditto.
4182 * linux-nat.h: Ditto.
4183 * linux-thread-db.c: Ditto.
4184 * machoread.c: Ditto.
4185 * macroexp.c: Ditto.
4186 * macrotab.c: Ditto.
4187 * main.c: Ditto.
4188 * maint.c: Ditto.
4189 * mdebugread.c: Ditto.
4190 * memattr.c: Ditto.
4191 * minsyms.c: Ditto.
4192 * monitor.c: Ditto.
4193 * monitor.h: Ditto.
4194 * objfiles.c: Ditto.
4195 * objfiles.h: Ditto.
4196 * osabi.c: Ditto.
4197 * p-typeprint.c: Ditto.
4198 * p-valprint.c: Ditto.
4199 * parse.c: Ditto.
4200 * printcmd.c: Ditto.
4201 * proc-events.c: Ditto.
4202 * procfs.c: Ditto.
4203 * progspace.c: Ditto.
4204 * progspace.h: Ditto.
4205 * psympriv.h: Ditto.
4206 * psymtab.c: Ditto.
4207 * record.c: Ditto.
4208 * regcache.c: Ditto.
4209 * regcache.h: Ditto.
4210 * remote-fileio.c: Ditto.
4211 * remote.c: Ditto.
4212 * ser-mingw.c: Ditto.
4213 * ser-tcp.c: Ditto.
4214 * ser-unix.c: Ditto.
4215 * serial.c: Ditto.
4216 * serial.h: Ditto.
4217 * solib-frv.c: Ditto.
4218 * solib-irix.c: Ditto.
4219 * solib-osf.c: Ditto.
4220 * solib-pa64.c: Ditto.
4221 * solib-som.c: Ditto.
4222 * solib-sunos.c: Ditto.
4223 * solib-svr4.c: Ditto.
4224 * solib-target.c: Ditto.
4225 * solib.c: Ditto.
4226 * somread.c: Ditto.
4227 * source.c: Ditto.
4228 * stabsread.c: Ditto.
4229 * stabsread.c: Ditto.
4230 * stack.c: Ditto.
4231 * stack.h: Ditto.
4232 * symfile-mem.c: Ditto.
4233 * symfile.c: Ditto.
4234 * symfile.h: Ditto.
4235 * symmisc.c: Ditto.
4236 * symtab.c: Ditto.
4237 * symtab.h: Ditto.
4238 * target-descriptions.c: Ditto.
4239 * target-memory.c: Ditto.
4240 * target.c: Ditto.
4241 * target.h: Ditto.
4242 * terminal.h: Ditto.
4243 * thread.c: Ditto.
4244 * top.c: Ditto.
4245 * tracepoint.c: Ditto.
4246 * tracepoint.h: Ditto.
4247 * ui-file.c: Ditto.
4248 * ui-file.h: Ditto.
4249 * ui-out.h: Ditto.
4250 * user-regs.c: Ditto.
4251 * user-regs.h: Ditto.
4252 * utils.c: Ditto.
4253 * valarith.c: Ditto.
4254 * valops.c: Ditto.
4255 * valprint.c: Ditto.
4256 * valprint.h: Ditto.
4257 * value.c: Ditto.
4258 * varobj.c: Ditto.
4259 * varobj.h: Ditto.
4260 * vec.h: Ditto.
4261 * xcoffread.c: Ditto.
4262 * xcoffsolib.c: Ditto.
4263 * xcoffsolib.h: Ditto.
4264 * xml-syscall.c: Ditto.
4265 * xml-tdesc.c: Ditto.
4266
9a2b4c1b
MS
42672011-01-05 Michael Snyder <msnyder@vmware.com>
4268
4269 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4270 * cli/cli-decode.c: Ditto.
4271 * cli/cli-dump.c: Ditto.
4272 * cli/cli-logging.c: Ditto.
4273 * cli/cli-script.c: Ditto.
4274 * cli/cli-setshow.c: Ditto.
4275 * common/signals.c: Ditto.
4276 * mi/mi-cmd-break.c: Ditto.
4277 * mi/mi-cmd-disas.c: Ditto.
4278 * mi/mi-cmd-stack.c: Ditto.
4279 * mi/mi-cmd-var.c: Ditto.
4280 * mi/mi-cmds.c: Ditto.
4281 * mi/mi-common.h: Ditto.
4282 * mi/mi-console.c: Ditto.
4283 * mi/mi-interp.c: Ditto.
4284 * mi/mi-main.c: Ditto.
4285 * osf-share/cma_attr.c: Ditto.
4286 * osf-share/cma_deb_core.h: Ditto.
4287 * osf-share/cma_debug_client.h: Ditto.
4288 * osf-share/cma_handle.h: Ditto.
4289 * osf-share/cma_mutex.h: Ditto.
4290 * osf-share/cma_stack_int.h: Ditto.
4291 * osf-share/cma_tcb_defs.h: Ditto.
4292 * python/py-auto-load.c: Ditto.
4293 * python/py-breakpoint.c: Ditto.
4294 * python/py-cmd.c: Ditto.
4295 * python/py-frame.c: Ditto.
4296 * python/py-objfile.c: Ditto.
4297 * python/py-param.c: Ditto.
4298 * python/py-progspace.c: Ditto.
4299 * python/py-symbol.c: Ditto.
4300 * python/py-value.c: Ditto.
4301 * python/python-internal.h: Ditto.
4302 * python/python.c: Ditto.
4303 * tui/tui-data.c: Ditto.
4304 * tui/tui-disasm.c: Ditto.
4305 * tui/tui-hooks.c: Ditto.
4306 * tui/tui-io.c: Ditto.
4307 * tui/tui-layout.c: Ditto.
4308 * tui/tui-regs.c: Ditto.
4309 * tui/tui-source.c: Ditto.
4310 * tui/tui-stack.c: Ditto.
4311 * tui/tui-win.c: Ditto.
4312 * tui/tui-windata.c: Ditto.
4313 * tui/tui-winsource.c: Ditto.
4314
44944448
JB
43152011-01-05 Joel Brobecker <brobecker@adacore.com>
4316
4317 * configure.ac, gdb.1: Copyright year update.
4318
ebedcab5
JK
43192011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4320
4321 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4322 this_pc_in_block, morestack_msym and morestack_name. Check for
4323 "__morestack" minimal symbol there.
4324
e5cc9f32
JB
43252011-01-03 Joel Brobecker <brobecker@adacore.com>
4326
4327 * symfile.c (find_sym_fns): Add call to dont_repeat.
4328
7b6bb8da
JB
43292011-01-01 Joel Brobecker <brobecker@adacore.com>
4330
4331 Copyright year update in most files (performed by copyright.sh).
4332
71ce852c
JB
43332011-01-01 Joel Brobecker <brobecker@adacore.com>
4334
4335 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 4336
c3c1ebe8 4337For older changes see ChangeLog-2010.
c906108c
SS
4338\f
4339Local Variables:
4340mode: change-log
4341left-margin: 8
4342fill-column: 74
4343version-control: never
57da7796 4344coding: utf-8
c906108c 4345End:
This page took 1.46276 seconds and 4 git commands to generate.