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