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