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