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