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