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