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