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