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