<unavailable> references.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2
3 <unavailable> references.
4
5 * valops.c (get_value_at): Use value_from_contents_and_address,
6 avoiding read_memory.
7
8 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9
10 * c-valprint.c (c_val_print): Print a string with unavailable
11 contents as an array.
12
13 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14
15 * value.h (unpack_bits_as_long): Delete declaration.
16 (unpack_value_bits_as_long): Declare.
17 (unpack_value_field_as_long): Declare.
18 (value_field_bitfield): Declare.
19 * value.c (unpack_bits_as_long): Rename to...
20 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
21 value parameters. Return the extracted result in a new output
22 parameter. If the value contents are unavailable, return false,
23 otherwise return true.
24 (unpack_value_bits_as_long): New.
25 (unpack_field_as_long): Rename to...
26 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
27 Add embedded_offset and value parameters. Return the extracted
28 result in a new output parameter. If the value contents are
29 unavailable, return false, otherwise return true.
30 (unpack_value_field_as_long): New.
31 (unpack_field_as_long_1): New.
32 (unpack_field_as_long): Reimplement as wrapper around
33 unpack_value_field_as_long_1.
34 (value_field_bitfield): New function.
35 * valops.c (value_fetch_lazy): When fetching a bitfield, use
36 unpack_value_bits_as_long. Mark the value as unavailable, if it
37 is unavailable.
38 * jv-valprint.c (java_print_value_fields): Use
39 value_field_bitfield.
40 * p-valprint.c (pascal_object_print_value_fields): Use
41 value_field_bitfield.
42 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
43
44 2011-02-14 Pedro Alves <pedro@codesourcery.com>
45
46 * value.c (get_internalvar_integer): Also return the int value of
47 TYPE_CODE_INT INTERNALVAR_VALUE values.
48 (set_internalvar): Don't special case TYPE_CODE_INT.
49
50 2011-02-14 Pedro Alves <pedro@codesourcery.com>
51
52 * value.c (struct internalvar) <enum internalvar_kind>: Remove
53 INTERNALVAR_POINTER.
54 <pointer>: Delete.
55 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
56 (set_internalvar): Remove special TYPE_CODE_PTR handling.
57 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
58
59 2011-02-14 Pedro Alves <pedro@codesourcery.com>
60
61 * value.h (value_available_contents_eq): Declare.
62 * value.c (find_first_range_overlap): New function.
63 (value_available_contents_eq): New function.
64 * valprint.c (val_print_array_elements): Use
65 value_available_contents_eq.
66 * ada-valprint.c (val_print_packed_array_elements): Use
67 value_available_contents_eq.
68 * jv-valprint.c (java_value_print): Use
69 value_available_contents_eq.
70
71 2011-02-14 Pedro Alves <pedro@codesourcery.com>
72
73 * target.c (target_read_live_memory): New function.
74 (memory_xfer_live_readonly_partial): New.
75 (memory_xfer_partial): If reading from a traceframe, fallback to
76 reading unavailable read-only memory from read-only regions of
77 live target memory.
78 * tracepoint.c (disconnect_tracing): Adjust.
79 (set_current_traceframe): New, factored out from
80 set_traceframe_number.
81 (set_traceframe_number): Reimplement to only change the traceframe
82 number on the GDB side.
83 (do_restore_current_traceframe_cleanup): Adjust.
84 (make_cleanup_restore_traceframe_number): New.
85 (cur_traceframe_number): New global.
86 (tfile_open): Set cur_traceframe_number to no traceframe.
87 (set_tfile_traceframe): New function.
88 (tfile_trace_find): If looking up a traceframe using any method
89 other than by number, make sure the current tfile traceframe
90 matches gdb's current traceframe. Update the current tfile
91 traceframe if the lookup succeeded.
92 (tfile_fetch_registers, tfile_xfer_partial)
93 (tfile_get_trace_state_variable_value): Make sure the remote
94 traceframe matches gdb's current traceframe.
95 * remote.c (remote_traceframe_number): New global.
96 (remote_open_1): Set it to -1.
97 (set_remote_traceframe): New function.
98 (remote_fetch_registers, remote_store_registers)
99 (remote_xfer_memory, remote_xfer_partial)
100 (remote_get_trace_state_variable_value): Make sure the remote
101 traceframe matches gdb's current traceframe.
102 (remote_trace_find): If looking up a traceframe using any method
103 other than by number, make sure the current remote traceframe
104 matches gdb's current traceframe. Update the current remote
105 traceframe if the lookup succeeded.
106 * infrun.c (fetch_inferior_event): Adjust.
107 * tracepoint.h (set_current_traceframe): Declare.
108 (get_traceframe_number, set_traceframe_number): Add describing
109 comments.
110
111 2011-02-14 Pedro Alves <pedro@codesourcery.com>
112
113 Mark pieces of values as unavailable if the corresponding memory
114 is unavailable.
115
116 * valops.c: Include tracepoint.h.
117 (value_fetch_lazy): Use read_value_memory.
118 (read_value_memory): New.
119 * value.h (read_value_memory): Declare.
120 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
121 * exec.c (section_table_available_memory): New function.
122 * exec.h (section_table_available_memory): Declare.
123
124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
125
126 * Makefile.in (SFILES): Add memrange.c.
127 (HFILES_NO_SRCDIR): Add memrange.h.
128 (COMMON_OBS): Add memrange.o.
129 * memrange.c: New file.
130 * memrange.h: New file.
131 * tracepoint.c: Include memrange.h.
132 (struct mem_range): Delete.
133 (mem_range_s): Delete.
134 (traceframe_available_memory): New function.
135 * tracepoint.h (traceframe_available_memory): Declare.
136
137 2011-02-14 Pedro Alves <pedro@codesourcery.com>
138
139 * target.h (struct traceframe_info): Forward declare.
140 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
141 (struct target_ops) <to_traceframe_info>: New field.
142 (target_traceframe_info): New.
143 * target.c (update_current_target): Inherit and default
144 to_traceframe_info.
145 * remote.c (PACKET_qXfer_traceframe_info): New.
146 (remote_protocol_features): Register qXfer:traceframe-info:read.
147 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
148 (remote_traceframe_info): New.
149 (init_remote_ops): Install it.
150 (_initialize_remote): Install "set/show remote traceframe-info"
151 commands.
152 * tracepoint.h (parse_traceframe_info): Declare.
153 * tracepoint.c (struct mem_range): New.
154 (mem_range_s): New typedef.
155 (struct traceframe_info): New.
156 (traceframe_info): New global.
157 (free_traceframe_info): New function.
158 (clear_traceframe_info): New function.
159 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
160 info.
161 (build_traceframe_info): New function.
162 (tfile_traceframe_info): New function.
163 (init_tfile_ops): Install tfile_traceframe_info.
164 (traceframe_info_start_memory, free_result): New functions.
165 (memory_attributes, traceframe_info_elements): New globals.
166 (parse_traceframe_info, get_traceframe_info): New functions.
167 * features/traceframe-info.dtd: New file.
168 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
169
170 2011-02-14 Pedro Alves <pedro@codesourcery.com>
171
172 Base support for <unavailable> value contents.
173
174 * value.h (value_bytes_available): Declare.
175 (mark_value_bytes_unavailable): Declare.
176 * value.c (struct range): New struct.
177 (range_s): New typedef.
178 (ranges_overlap): New function.
179 (range_lessthan): New function.
180 (ranges_contain_p): New function.
181 (struct value) <unavailable>: New field.
182 (value_bytes_available): New function.
183 (mark_value_bytes_unavailable): New function.
184 (require_not_optimized_out): Constify parameter.
185 (require_available): New function.
186 (value_contents_all, value_contents): Require all bytes be
187 available.
188 (value_free): Free `unavailable'.
189 (value_copy): Copy `unavailable'.
190 * valprint.h (val_print_unavailable): Declare.
191 * valprint.c (valprint_check_validity): Rename `offset' parameter
192 to `embedded_offset'. If printing a scalar, check whether the
193 value chunk is available.
194 (val_print_unavailable): New.
195 (val_print_scalar_formatted): Check whether the value is
196 available.
197 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
198 pretty-printing unavailable values.
199
200 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
201
202 Fix const/volatile qualifiers of C++ types, PR c++/12328.
203 * c-typeprint.c (c_type_print_args): Update the function comment. New
204 variable param_type, initialize it. Remove const/volatile qualifiers
205 for language_cplus and !show_artificial. Use param_type.
206
207 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
210 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
211 * symtab.h (struct symtab) <next>: Comment extension.
212
213 2011-02-12 Yao Qi <yao@codesourcery.com>
214
215 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
216
217 2011-02-11 Pedro Alves <pedro@codesourcery.com>
218
219 * infrun.c (proceed): Move switching out and in of tfind mode from
220 here ...
221 (fetch_inferior_event): ... to here.
222
223 2011-02-11 Yao Qi <yao@codesourcery.com>
224
225 * Makefile.in: Remove signals.o from COMMON_OBS. Link
226 libcommon.a.
227 * configure.ac: Add common to sub dir.
228 * configure: Regenerate.
229
230 2011-02-10 Pedro Alves <pedro@codesourcery.com>
231
232 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
233 side of the parenthesis.
234
235 Merge from GCC:
236 2010-07-13 Jakub Jelinek <jakub@redhat.com>
237 * vec.h (VEC_block_remove): Fix comment.
238
239 2011-02-08 Michael Snyder <msnyder@vmware.com>
240
241 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
242
243 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
244
245 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
246 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
247 psubd and paddd.
248
249 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
250
251 PR 12361.
252 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
253 phsubsw.
254 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
255 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
256
257 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
258
259 * dwarf2read.c (read_subroutine_type): Set special calling
260 convention flag for functions compiled by IBM XL C for OpenCL.
261 * ppc-sysv-tdep.c: Include "dwarf2.h"
262 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
263 calling convention.
264 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
265 IBM OpenCL vector types calling convention.
266 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
267 (ppc_sysv_abi_broken_return_value): Likewise.
268 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
269 types calling convention.
270 (ppc64_sysv_abi_return_value): Likewise.
271 * spu-tdep.c: Include "dwarf2.h"
272 (spu_return_value): Implement IBM OpenCL vector types calling
273 convention.
274
275 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
276
277 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
278 correct ABI for AltiVec vector arguments.
279
280 2011-02-07 Pedro Alves <pedro@codesourcery.com>
281
282 * valprint.c (val_print): Extend comment.
283 * ada-valprint.c (ada_valprint): Rewrite comment deferring
284 interface explanation to val_print.
285 (ada_val_print_array): Adjust comment to current interface.
286 (print_field_values): Adjust comment to current interface.
287 * c-valprint.c (c_val_print): Rewrite comment deferring interface
288 explanation to val_print.
289 * f-valprint.c (f_val_print): Ditto.
290 * jv-valprint.c (java_val_print): Ditto.
291 * m2-valprint.c (m2_val_print): Ditto.
292 * p-valprint.c (pascal_val_print): Ditto.
293
294 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
295
296 * breakpoint.c (parse_breakpoint_sals): Fix description.
297
298 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
299 Oguz Kayral <oguzkayral@gmail.com>
300
301 * python/py-inferior.c (python_on_normal_stop): New function.
302 (python_on_resume): New function.
303 (python_inferior_exit): New function.
304 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
305 inferior_exit observers.
306 * python/py-evtregistry.c: New file.
307 * python/py-threadevent.c : New file.
308 * python/py-event.c: New file.
309 * python/py-evts.c: New file.
310 * python/py-continueevent.c: New file.
311 * python/py-bpevent.c: New file.
312 * python/py-signalevent.c: New file.
313 * python/py-exetiedevent.c: New file.
314 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
315 Move struct breakpoint_object from here...
316 * python/python-internal.h: ... to here.
317 * python/py-event.h: New file.
318 * python/py-events.h: New file.
319 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
320 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
321 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
322 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
323 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
324 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
325 Add build rules for all the above.
326
327 2011-02-04 Tom Tromey <tromey@redhat.com>
328
329 * dwarf2read.c (dwarf2_section_empty_p): New function.
330 (dwarf2_read_section): Use dwarf2_section_empty_p.
331 (dwarf2_section_size): New function.
332 (dwarf2_get_section_info): Unconditionally read section.
333 (dwarf2_read_index): Use dwarf2_section_empty_p.
334 (partial_read_comp_unit_head): Use dwarf2_section_size.
335 (dwarf2_symbol_mark_computed): Likewise.
336
337 2011-02-04 David Daney <ddaney@caviumnetworks.com>
338
339 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
340
341 2011-02-04 David Daney <ddaney@caviumnetworks.com>
342
343 * mips-linux-tdep.c: Include xml-syscall.h.
344 (mips_linux_get_syscall_number): New function.
345 (mips_linux_init_abi): Add calls to
346 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
347 * data-directory/Makefile.in (SYSCALLS_FILES): Add
348 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
349 * syscalls/mips-n32-linux.xml: New file.
350 * syscalls/mips-n64-linux.xml: New file.
351 * syscalls/mips-o32-linux.xml: New file.
352
353 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
354
355 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
356 Complain about inverted range entries.
357 (dwarf2_record_block_ranges): Likewise.
358
359 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
360
361 Fix some typos.
362 * breakpoint.c (update_watchpoint): Fix name of the
363 update_global_location_list function.
364 (print_one_breakpoint): Fix typo.
365 (_initialize_breakpoint): Remove extra space in hbreak help
366 string.
367 * breakpoint.h (struct bp_location) <length>: Fix field
368 description.
369
370 2011-02-04 Pedro Alves <pedro@codesourcery.com>
371
372 * regcache.c (registers_changed_ptid): Don't explictly always
373 clear `current_regcache'. Only clear current_thread_ptid and
374 current_thread_arch when PTID matches. Only reinit the frame
375 cache if PTID matches the current inferior_ptid. Move alloca(0)
376 call to ...
377 (registers_changed): ... here.
378
379 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
380
381 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
382 starts with __stack_chk_guard as stack guard symbol.
383
384 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
385
386 * disasm.c (compare_lines): Handle the end of sequence markers
387 within the line table to better support disassembling over
388 compilation unit boundaries.
389
390 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
391
392 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
393 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
394 implementation even if no symbols are available.
395 (thumb_analyze_prologue): Update call to skip_prologue_function.
396 (arm_analyze_prologue): Likewise.
397
398 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
399
400 * arm-tdep.c: Include "observer.h".
401 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
402 (arm_exidx_data_key): New static variable.
403 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
404 (struct arm_exidx_data): Likewise.
405 (arm_exidx_data_free): New function.
406 (arm_compare_exidx_entries): Likewise.
407 (arm_obj_section_from_vma): Likewise.
408 (arm_exidx_new_objfile): Likewise.
409 (arm_find_exidx_entry): Likewise.
410 (arm_exidx_fill_cache): Likewise.
411 (arm_exidx_unwind_sniffer): Likewise.
412 (arm_exidx_unwind): New global variable.
413 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
414 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
415 observer. Register arm_exidx_data_key as objfile data.
416
417 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
418
419 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
420 due to accessing uninitialized variable. Fix indentation.
421
422 2011-02-02 Pedro Alves <pedro@codesourcery.com>
423
424 * c-valprint.c (c_value_print): When doing virtual base pointer
425 adjustment, create a new value with adjusted contents rather than
426 changing the contents of the value being printed (and getting it
427 wrong).
428
429 2011-02-02 Pedro Alves <pedro@codesourcery.com>
430
431 * xml-support.c (xml_find_attribute): New.
432 (xinclude_start_include): Use it.
433 * xml-support.h (xml_find_attribute): Declare.
434 * memory-map.c (memory_map_start_memory)
435 (memory_map_start_property): Use xml_find_attribute.
436 * osdata.c (osdata_start_osdata, osdata_start_column): Use
437 xml_find_attribute.
438 * remote.c (start_thread): Use xml_find_attribute.
439 * solib-target.c (library_list_start_segment)
440 (library_list_start_section, library_list_start_library)
441 (library_list_start_list): Use xml_find_attribute.
442 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
443 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
444 (tdesc_start_field): Use xml_find_attribute.
445
446 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
447
448 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
449 (BUILD_OCL_VTYPES): Update.
450
451 2011-02-02 Joel Brobecker <brobecker@adacore.com>
452
453 * configure.ac: Work around non-GNU sed limitation when computing
454 python version number.
455 * configure: Regenerate.
456
457 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
458
459 Fix debug printing of TYPE_INSTANCE.
460 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
461 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
462
463 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
466 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
467 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
468 * ada-operator.inc: Rename the file to ...
469 * ada-operator.def: ... here, wrap all the entries by macro OP.
470 * expprint.c (op_name_standard): Remove all the entries. Include
471 "std-operator.def" instead.
472 * expression.h (enum exp_opcode): Include "std-operator.def" and
473 "ada-operator.def". Move all the entries ...
474 * std-operator.def: ... here, wrap all the entries by macro OP.
475
476 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
477
478 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
479 * breakpoint.c (remove_jit_event_breakpoints): New function.
480 * jit.c (jit_descriptor_addr): Delete.
481 (registering_code): Delete.
482 (clear_int): Delete.
483 (jit_inferior_data): New variable.
484 (struct jit_inferior_data): New type.
485 (get_jit_inferior_data): New function.
486 (jit_inferior_data_cleanup): New function.
487 (jit_read_descriptor): Adjust.
488 (jit_register_code): Adjust.
489 (jit_breakpoint_re_set_internal): New function; move code here ...
490 (jit_inferior_init): ... from here.
491 (jit_breakpoint_re_set): Adjust.
492 (jit_reset_inferior_data_and_breakpoints): New function.
493 (jit_inferior_created_observer): Adjust.
494 (jit_inferior_exit_hook): Adjust.
495 (jit_executable_changed_observer): New function.
496 (jit_event_handler): Adjust.
497 (_initialize_jit): Adjust.
498
499 2011-01-31 Michael Snyder <msnyder@vmware.com>
500
501 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
502 line.
503
504 2011-01-31 Tom Tromey <tromey@redhat.com>
505
506 PR python/12216:
507 * python/python.c (execute_gdb_command): Call
508 prevent_dont_repeat.
509 * top.c (suppress_dont_repeat): New global.
510 (dont_repeat): Use it.
511 (prevent_dont_repeat): New function.
512 * command.h (prevent_dont_repeat): Declare.
513
514 2011-01-31 Tom Tromey <tromey@redhat.com>
515
516 * infcmd.c (finish_backward): Use breakpoint_set_silent.
517 * python/py-breakpoint.c (bppy_set_silent): Use
518 breakpoint_set_silent.
519 (bppy_set_thread): Use breakpoint_set_thread.
520 (bppy_set_task): Use breakpoint_set_task.
521 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
522 (breakpoint_set_task): Declare.
523 (make_breakpoint_silent): Remove.
524 * breakpoint.c (breakpoint_set_silent): New function.
525 (breakpoint_set_thread): Likewise.
526 (breakpoint_set_task): Likewise.
527 (make_breakpoint_silent): Remove.
528
529 2011-01-31 Tom Tromey <tromey@redhat.com>
530
531 * breakpoint.h (user_breakpoint_p): Declare.
532 * breakpoint.c (user_breakpoint_p): New function.
533 (breakpoint_1): Use it.
534 (save_breakpoints): Likewise.
535
536 2011-01-31 Joel Brobecker <brobecker@adacore.com>
537
538 * configure.ac: Add handling of Python distribution on Windows.
539 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
540 sysconfig variables are not defined, then do not use them.
541 On Windows, if LIBPL is not defined, then use prefix + '/libs'
542 instead. On Windows, return all paths using forward-slashes
543 rather than backslashes.
544
545 2011-01-31 Joel Brobecker <brobecker@adacore.com>
546
547 * configure.ac: Remove fallback behavior for building
548 against Python. Remove tweaking of Python include path.
549 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
550 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
551 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
552 Always restore CPPFLAGS and LIBS after linking test.
553 * configure: Regenerated.
554 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
555 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
556 * python/python-internal.h: Adjust includes of Python .h files.
557
558 2011-01-31 Joel Brobecker <brobecker@adacore.com>
559
560 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
561 in error message.
562
563 2011-01-31 Joel Brobecker <brobecker@adacore.com>
564
565 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
566 value test.
567
568 2011-01-31 Yao Qi <yao@codesourcery.com>
569
570 * arm-linux-nat.c: Update calls to regcache_register_status
571 instead of regcache_valid_p.
572 * aix-thread.c: Likewise.
573 * i386gnu-nat.c: Likewise.
574
575 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
576
577 Fix crash.
578 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
579 touching TYPE_FIELD_ARTIFICIAL.
580
581 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
582
583 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
584 Committers.
585
586 2011-01-28 Pedro Alves <pedro@codesourcery.com>
587
588 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
589 selected, don't try iterating over the traceframe's blocks.
590 (tfile_has_stack): If there's no traceframe selected, then there's
591 no stack.
592 (tfile_has_registers): If there's no traceframe selected, then
593 there's no registers.
594
595 2011-01-28 Pedro Alves <pedro@codesourcery.com>
596
597 * target.c (memory_xfer_partial): No need to restore shadows if we
598 haven't read anything.
599
600 2011-01-28 Pedro Alves <pedro@codesourcery.com>
601
602 * mips-tdep.c (mips_print_register): Use get_frame_register_value
603 and val_print_scalar_formatted.
604
605 2011-01-27 Pedro Alves <pedro@codesourcery.com>
606
607 * tracepoint.c (tfile_read): New.
608 (tfile_open): Use it.
609 (tfile_get_traceframe_address): Use it.
610 (tfile_trace_find): Use it.
611 (walk_blocks_callback_func): New typedef.
612 (match_blocktype): New function.
613 (traceframe_walk_blocks): New function.
614 (traceframe_find_block_type): New function.
615 (tfile_fetch_registers, tfile_xfer_partial)
616 (tfile_get_trace_state_variable_value): Use
617 traceframe_find_block_type and tfile_read.
618
619 2011-01-26 Kevin Buettner <kevinb@redhat.com>
620
621 * remote-mips.c: Add internationalization mark ups. Remove
622 trailing \n from already marked up strings.
623
624 2011-01-26 Tom Tromey <tromey@redhat.com>
625
626 * python/py-prettyprint.c (print_string_repr): Clear
627 'addressprint' option when calling val_print_string.
628 (print_children): Handle Val_pretty_default. Clear 'addressprint'
629 option when calling val_print_string.
630
631 2011-01-26 Tom Tromey <tromey@redhat.com>
632
633 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
634 GDB_PY_LL_ARG.
635 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
636 macros.
637 (gdb_py_longest, gdb_py_ulongest): New typedefs.
638 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
639 (gdb_py_long_as_ulongest): New defines.
640 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
641 (gdb_py_int_as_long): Declare.
642 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
643 GDB_PY_LL_ARG, gdb_py_object_from_longest.
644 (valpy_long): Add comment.
645 * python/py-utils.c (get_addr_from_python): Use
646 gdb_py_long_as_ulongest. Handle overflow properly.
647 (gdb_py_object_from_longest): New function.
648 (gdb_py_object_from_ulongest): Likewise.
649 (gdb_py_int_as_long): Likewise.
650 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
651 * python/py-symtab.c (salpy_get_pc): Use
652 gdb_py_long_from_ulongest.
653 (salpy_get_line): Use PyInt_FromLong.
654 * python/py-param.c (set_parameter_value): Use
655 gdb_py_int_as_long.
656 * python/py-lazy-string.c (stpy_get_address): Use
657 gdb_py_long_from_ulongest.
658 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
659 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
660 * python/py-breakpoint.c (bppy_set_thread): Use
661 gdb_py_int_as_long.
662 (bppy_set_task): Likewise.
663 (bppy_set_ignore_count): Likewise.
664 (bppy_set_hit_count): Likewise.
665 * python/py-block.c (blpy_get_start): Use
666 gdb_py_object_from_ulongest.
667 (blpy_get_end): Likewise.
668 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
669
670 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
671
672 PR/symtab 11766:
673 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
674 * gdb/solib.c (solib_read_symbols): Check for addr_low in
675 equality test for objfile, initialize addr_low if needed.
676
677 2011-01-25 Pedro Alves <pedro@codesourcery.com>
678
679 * tui/tui-regs.c (tui_register_format): Remove dead code.
680
681 2011-01-25 Pedro Alves <pedro@codesourcery.com>
682
683 * printcmd.c (print_formatted): Use val_print_scalar_formatted
684 instead of print_scalar_formatted.
685 (print_scalar_formatted): Don't handle 's' format strings here,
686 and add an assertion that we never see such format here.
687 * valprint.h (val_print_scalar_formatted): Declare.
688 * valprint.c (val_print_scalar_formatted): New.
689 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
690 instead of print_scalar_formatted.
691 * jv-valprint.c (java_val_print): Ditto.
692 * p-valprint.c (pascal_val_print): Ditto.
693 * ada-valprint.c (ada_val_print_1): Ditto.
694 * f-valprint.c (f_val_print): Ditto.
695 * infcmd.c (registers_info): Ditto.
696 * m2-valprint.c (m2_val_print): Ditto.
697
698 2011-01-25 Pedro Alves <pedro@codesourcery.com>
699
700 * m2-valprint.c (print_unbounded_array): Pass
701 value_contents_for_printing rather than value_contents, to
702 m2_print_array_contents. Also pass in the value.
703
704 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
705
706 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
707 (save_gdb_index_command): Switch to .gdb_index version 4.
708
709 2011-01-25 Pedro Alves <pedro@codesourcery.com>
710
711 * mi/mi-main.c (get_register): Use get_frame_register_value rather
712 than frame_register, and always pass a valid value to val_print.
713
714 2011-01-25 Pedro Alves <pedro@codesourcery.com>
715
716 Centralize printing "<optimized out>".
717
718 * valprint.h (val_print_optimized_out): Declare.
719 * cp-valprint.c (cp_print_value_fields): Use
720 val_print_optimized_out.
721 * jv-valprint.c (java_print_value_fields): Ditto.
722 * p-valprint.c (pascal_object_print_value_fields): Ditto.
723 * printcmd.c (print_formatted): Ditto.
724 * valprint.c (valprint_check_validity): Ditto.
725 (value_check_printable): Ditto.
726 (val_print_optimized_out): New.
727
728 2011-01-25 Pedro Alves <pedro@codesourcery.com>
729
730 * infcmd.c (default_print_registers_info): Allocate values so to
731 never pass a NULL value to val_print.
732
733 2011-01-25 Pedro Alves <pedro@codesourcery.com>
734
735 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
736 boolean. Make sure to always pass a value that matches the
737 contents buffer to callees. Preserve `address' for following
738 iterations.
739 * value.c (value_contents_for_printing_const): New.
740 (value_address): Constify value argument.
741 * value.h (value_contents_for_printing_const): Declare.
742 (value_address): Constify value argument.
743
744 2011-01-25 Pedro Alves <pedro@codesourcery.com>
745
746 * regcache.c (struct regcache_descr): Rename
747 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
748 and sizeof_cooked_register_valid_p to
749 sizeof_cooked_register_status.
750 (init_regcache_descr): Adjust.
751 (struct regcache): Rename register_valid_p field to
752 register_status.
753 (regcache_xmalloc_1, regcache_xfree, regcache_save)
754 (do_cooked_read): Adjust.
755 (regcache_valid_p): Rename to ...
756 (regcache_register_status): ... this. Adjust.
757 (regcache_invalidate): Adjust.
758 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
759 Adjust.
760 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
761 as unavailable, not valid.
762 (regcache_dump): Adjust.
763 * regcache.h (enum register_status): New.
764 (regcache_register_status): Declare.
765 (regcache_invalidate): Delete declaration.
766 * corelow.c (get_core_registers): Adjust.
767 * tracepoint.c (tfile_fetch_registers): Adjust.
768 * trad-frame.c (REG_VALUE): Rename to ...
769 (TF_REG_VALUE): ... this.
770 (REG_UNKNOWN): Rename to ...
771 (TF_REG_UNKNOWN): ... this.
772 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
773 * mi/mi-main.c (register_changed_p): Adjust.
774
775 2011-01-25 Pedro Alves <pedro@codesourcery.com>
776
777 * regcache.c (struct regcache_descr): Remove outdated comment.
778 (init_regcache_descr): Remove sizeof_raw_register_valid_p
779 overallocate hack.
780 (regcache_xmalloc): Rename to ...
781 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
782 Allocate the regcache type accordingly.
783 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
784 (regcache_xfree): Asser the source is also readonly. Copy sizeof
785 cooked registers, not raw.
786 (regcache_dup_no_passthrough): Delete.
787 (get_thread_arch_regcache): Use regcache_xmalloc_1.
788 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
789 mention obsolete write_register_bytes.
790 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
791
792 2011-01-25 Pedro Alves <pedro@codesourcery.com>
793
794 Stop remote_read_bytes from handling partial reads itself.
795
796 * remote-fileio.c: Include target.h.
797 (remote_fileio_write_bytes): Delete.
798 (remote_fileio_func_open, remote_fileio_func_write)
799 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
800 target_read_memory.
801 (remote_fileio_func_stat): Use target_read_memory and
802 target_write_memory.
803 (remote_fileio_func_gettimeofday): Use target_write_memory.
804 (remote_fileio_func_system): Use target_read_memory.
805 * remote.c (remote_write_bytes): Make it static.
806 (remote_read_bytes): Don't handle partial reads here.
807 * remote.h (remote_read_bytes): Delete declaration.
808
809 2011-01-25 Pedro Alves <pedro@codesourcery.com>
810
811 Simplify XML parsing a bit.
812
813 * xml-support.h (gdb_xml_parse_quick): Declare.
814 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
815 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
816 parameter.
817 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
818 gdb_xml_create_parser_and_cleanup_1.
819 (gdb_xml_parse_quick): New.
820 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
821 * osdata.c (osdata_parse): Ditto.
822 * remote.c (remote_threads_info): Ditto.
823 * solib-target.c (solib_target_parse_libraries): Ditto.
824 * xml-syscall.c (syscall_parse_xml): Ditto.
825 * xml-tdesc.c (tdesc_parse_xml): Ditto.
826
827 2011-01-24 Kevin Buettner <kevinb@redhat.com>
828
829 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
830 with remote-mips.o added to gdb_target_obs.
831 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
832
833 2011-01-24 Pedro Alves <pedro@codesourcery.com>
834
835 * ada-valprint.c (val_print_packed_array_elements): Pass the
836 correct struct value to val_print.
837 (ada_val_print_1): Ditto.
838
839 2011-01-24 Pedro Alves <pedro@codesourcery.com>
840
841 Don't lose embedded_offset in printing routines throughout.
842
843 * valprint.h (val_print_array_elements): Change prototype.
844 * valprint.c (val_print_array_elements): Add `embedded_offset'
845 parameter, and adjust to pass it down to val_print, while passing
846 `valaddr' or `address' unmodified. Take embedded_offset into
847 account when checking repetitions.
848 * c-valprint.c (c_val_print): Pass embedded_offset to
849 val_print_array_elements instead of adjusting `valaddr' and
850 `address'.
851 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
852 embedded_offset to val_print_array_elements instead of adjusting
853 `valaddr'.
854 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
855 * p-valprint.c (pascal_val_print): Pass embedded_offset to
856 val_print_array_elements and pascal_object_print_value_fields
857 instead of adjusting `valaddr'.
858 (pascal_object_print_value_fields): Add `offset' parameter, and
859 adjust to use it.
860 (pascal_object_print_value): Add `offset' parameter, and adjust to
861 use it.
862 (pascal_object_print_static_field): Use
863 value_contents_for_printing/value_embedded_offset, rather than
864 value_contents.
865 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
866 parameter, and adjust to use it. Use
867 value_contents_for_printing/value_embedded_offset, rather than
868 value_contents.
869 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
870 (ada_val_print_array): Add `offset' parameter, and adjust to use
871 it.
872 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
873 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
874 Instead work with offsets. Use
875 value_contents_for_printing/value_embedded_offset, rather than
876 value_contents. Change `defer_val_int' local type to CORE_ADDR,
877 and use value_from_pointer to extract a target pointer, rather
878 than value_from_longest.
879 (print_variant_part): Add `offset' parameter. Replace
880 `outer_valaddr' parameter by a new `outer_offset' parameter.
881 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
882 (ada_value_print): Use
883 value_contents_for_printing/value_embedded_offset, rather than
884 value_contents.
885 (print_record): Add `offset' parameter, and adjust to pass it
886 down.
887 (print_field_values): Add `offset' parameter. Replace
888 `outer_valaddr' parameter by a new `outer_offset' parameter.
889 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
890 Use value_contents_for_printing/value_embedded_offset, rather than
891 value_contents.
892 * d-valprint.c (dynamic_array_type): Use
893 value_contents_for_printing/value_embedded_offset, rather than
894 value_contents.
895 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
896 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
897 (java_print_value_fields): Take `offset' into account. Don't
898 re-adjust `valaddr'. Instead pass down adjusted offsets.
899 (java_val_print): Take `embedded_offset' into account. Pass it to
900 java_print_value_fields.
901 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
902 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
903 down adjusted offsets.
904 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
905 (f_val_print): Take `embedded_offset' into account.
906
907 2011-01-21 Joel Brobecker <brobecker@adacore.com>
908
909 * inflow.c: Include "gdbcmd.h".
910 (interactive_mode): New static global, moved here from top.c.
911 (show_interactive_mode): New function, moved here from top.c.
912 use gdb_has_a_terminal instead of input_from_terminal_p to
913 determine the current mode.
914 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
915 setting.
916 (_initialize_inflow): Add the "set/show interactive-mode"
917 commands. Moved here from top.c, after having adjusted slightly
918 the help text.
919 * top.c (interactive_mode, show_interactive_mode): Delete, moved
920 to inflow.c.
921 (input_from_terminal_p): Remove handling of "interactive-mode"
922 setting, moved to infow.c.
923 (init_main): Remove creation of the "set/show interactive-mode"
924 commands, moved to inflow.c.
925
926 2011-01-19 Joel Brobecker <brobecker@adacore.com>
927
928 * NEWS: Add entry for native ia64-hpux support.
929
930 2011-01-19 Tom Tromey <tromey@redhat.com>
931
932 PR mi/8618:
933 * thread.c (free_thread): Free 'name'.
934 (print_thread_info): Emit thread name. Change CLI output.
935 (thread_name_command): New function.
936 (do_captured_thread_select): Emit newline.
937 (_initialize_thread): Register 'thread name' command.
938 * target.h (struct target_ops) <to_thread_name>: New field.
939 (target_thread_name): New macro.
940 * target.c (update_current_target): Handle to_thread_name.
941 * python/py-infthread.c (thpy_get_name): New function.
942 (thpy_set_name): Likewise.
943 (thread_object_getset): Add "name".
944 * linux-nat.c (linux_nat_thread_name): New function.
945 (linux_nat_add_target): Set to_thread_name.
946 * gdbthread.h (struct thread_info) <name>: New field.
947
948 2011-01-18 Joel Brobecker <brobecker@adacore.com>
949
950 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
951 (ada_val_print_1): Likewise.
952
953 2011-01-18 Joel Brobecker <brobecker@adacore.com>
954
955 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
956 upper limit address is not greater than the function end address
957 when the upper limit could not be computed using the debugging
958 info.
959
960 2011-01-17 Tom Tromey <tromey@redhat.com>
961
962 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
963 get_regcomp_error.
964 * utils.c: Include gdb_regex.h.
965 (do_regfree_cleanup): New function.
966 (make_regfree_cleanup): Likewise.
967 (get_regcomp_error): Likewise.
968 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
969
970 2011-01-17 Tom Tromey <tromey@redhat.com>
971
972 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
973 re_compile_fastmap.
974
975 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
976
977 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
978 for internal variables.
979 (last_was_structop): New static variable.
980 (COMPLETE): New token.
981 (field_exp): New rule to group all '.' suffix handling.
982 Add mark_struct_expression calls when approriate to be able
983 to correctly find fields for completion.
984 (yylex): Adapt to handle field completion and set INTVAR when
985 required.
986
987 2011-01-14 Yao Qi <yao@codesourcery.com>
988
989 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
990 save_reggroup, restore_reggroup and all_reggroup.
991
992 2011-01-14 Joel Brobecker <brobecker@adacore.com>
993
994 * ada-valprint. (ada_printchar): Use the correct type length
995 in call to ada_emit_char.
996 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
997
998 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
999
1000 * solib-som.h (hpux_major_release): Declare variable here.
1001 * solib-som.c: Remove <sys/utsname.h> header.
1002 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1003 (hpux_major_release): Make global, change default value to
1004 DEFAULT_HPUX_MAJOR_RELEASE.
1005 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1006 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1007 Add "solib-som.h" header.
1008 (set_hpux_major_release): New function.
1009 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1010
1011 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1012
1013 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1014
1015 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1018 new-line at end of warning message.
1019 (ia64_hpux_store_register): Remove trailing new-line at end of
1020 error message.
1021 * ia64-hpux-tdep.c: Rephrase comment.
1022 * solib-ia64-hpux.c (struct dld_info): Change type of field
1023 dld_flags from "long long" to ULONGEST.
1024
1025 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1026
1027 * target.h (deprecated_child_ops): Delete declaration.
1028 * target.c (deprecated_child_ops): Delete definition.
1029
1030 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1031
1032 * Makefile.in (hpux-thread.o): Delete rule.
1033 * configure.ac: Don't check for HPUX DCE threads support.
1034 * configure, config.in: Regenerate.
1035 * hppa-hpux-nat.c (child_suppress_run): Delete.
1036 (hppa_hpux_child_can_run): Delete.
1037 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1038 * hpux-thread.c: Delete.
1039
1040 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1041
1042 * hpux-thread.c (hpux_pid_to_str): Delete.
1043
1044 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1045
1046 * ada-valprint.c (ada_emit_char): Remove strange code.
1047 Check that c is <= UCHAR_MAX before passing it to isascii.
1048 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1049
1050 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1051
1052 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1053 to the case where instream is stdin.
1054
1055 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1056
1057 * ia64-tdep.h (struct regcache): Forward declare.
1058 (struct ia64_infcall_ops): New struct type.
1059 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1060 and "infcall_ops".
1061 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1062 Renames ia64_find_global_pointer.
1063 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1064 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1065 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1066 methods.
1067 (ia64_infcall_ops): New static global constant.
1068 (ia64_gdbarch_init): Set tdep->infcall_ops.
1069 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1070 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1071 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1072 (ia64_hpux_dummy_code): New static global constant.
1073 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1074 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1075 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1076 New function.
1077 (ia64_hpux_infcall_ops): New static global constant.
1078 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1079 for inferior function calls to work properly on ia64-hpux.
1080
1081 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1082
1083 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1084 * ia64-tdep.h (struct frame_info): forward declaration.
1085 (struct gdbarch_tdep): Add field size_of_register_frame.
1086 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1087 to determine the size of the register frame.
1088 (ia64_size_of_register_frame): New function.
1089 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1090 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1091 (IA64_HPUX_UREG_REASON): New macro.
1092 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1093 New functions.
1094 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1095 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1096 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1097 objects.
1098
1099 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1100
1101 Add support for ia64-hpux.
1102 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1103 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1104
1105 * configure.host: Add handling for ia64-hpux hosts. Add associated
1106 floatformats.
1107 * configure.tgt: Add handling for ia64-hpux targets.
1108 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1109 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1110 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1111
1112 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1113
1114 [ttrace] Compute thread list immediately after attach.
1115 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1116 New subprogram.
1117 (inf_ttrace_attach): Use it.
1118
1119 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1120
1121 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1122 if we could not determine the frame's function address. Instead,
1123 use the frame's PC, and then continue.
1124
1125 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1126
1127 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1128 not already defined.
1129
1130 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1131
1132 * ia64-tdep.c (ia64_struct_type_p): New function.
1133 (ia64_extract_return_value): Handle integral values that are
1134 less than 8 bytes long.
1135 (ia64_push_dummy_call): Likewise.
1136
1137 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1138
1139 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1140 floatformat_ia64_ext.
1141 (floatformat_ia64_ext_big): New static const.
1142 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1143
1144 2011-01-12 Tom Tromey <tromey@redhat.com>
1145
1146 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1147 messages.
1148 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1149 (mi_cmd_thread_list_ids): Likewise.
1150 (mi_cmd_data_list_changed_registers): Likewise.
1151 (mi_cmd_data_list_register_values): Likewise.
1152 (mi_cmd_data_write_register_values): Likewise.
1153 (mi_cmd_data_evaluate_expression): Likewise.
1154 (mi_cmd_data_read_memory): Likewise.
1155 (mi_cmd_data_read_memory_bytes): Likewise.
1156 (mi_cmd_data_write_memory): Likewise.
1157 (mi_cmd_enable_timings): Likewise.
1158 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1159 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1160 (mi_cmd_var_delete): Likewise.
1161 (mi_cmd_var_set_format): Likewise.
1162 (mi_cmd_var_show_format): Likewise.
1163 (mi_cmd_var_info_num_children): Likewise.
1164 (mi_cmd_var_list_children): Likewise.
1165 (mi_cmd_var_info_type): Likewise.
1166 (mi_cmd_var_info_expression): Likewise.
1167 (mi_cmd_var_show_attributes): Likewise.
1168 (mi_cmd_var_assign): Likewise.
1169 (mi_cmd_var_update): Likewise.
1170 (mi_cmd_enable_pretty_printing): Likewise.
1171 (mi_cmd_var_set_update_range): Likewise.
1172 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1173 messages.
1174 (mi_cmd_target_file_put): Likewise.
1175 (mi_cmd_target_file_delete): Likewise.
1176 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1177 messages.
1178 (mi_cmd_stack_info_depth): Likewise.
1179 (mi_cmd_stack_list_locals): Likewise.
1180 (mi_cmd_stack_list_args): Likewise.
1181 (mi_cmd_stack_select_frame): Likewise.
1182 (mi_cmd_stack_select_frame): Likewise.
1183 (mi_cmd_stack_info_frame): Likewise.
1184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1185 messages.
1186 (mi_cmd_file_list_exec_source_files): Likewise.
1187 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1188 (mi_cmd_env_cd): Likewise.
1189 (mi_cmd_env_path): Likewise.
1190 (mi_cmd_env_dir): Likewise.
1191 (mi_cmd_inferior_tty_show): Likewise.
1192 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1193 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1194 (mi_cmd_break_watch): Likewise.
1195
1196 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1197
1198 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1199 (ppc_linux_insert_hw_breakpoint): Likewise.
1200 (ppc_linux_remove_hw_breakpoint): Likewise.
1201 (ppc_linux_insert_watchpoint): Likewise.
1202
1203 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1204 Jan Kratochvil <jan.kratochvil@redhat.com>
1205
1206 PR fortran/11104 and DWARF unbound arrays detection.
1207 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1208 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1209 unspecified upper bound.
1210 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1211 variables array_size_array, tmp_type and offset_item. New variable
1212 array. Remove call to f77_get_upperbound. New variables array_type
1213 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1214 the final call to deprecated_set_value_type.
1215
1216 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1217
1218 Make value allocations more lazy.
1219 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1220 instead of allocate_value and set_value_lazy when possible.
1221 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1222 instead of allocate_value and set_value_lazy.
1223 * findvar.c (value_of_register_lazy): Likewise.
1224 (read_var_value): Remove V preallocation, call just check_typedef in
1225 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1226 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1227 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1228 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1229 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1230 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1231 the end, remove set_value_lazy there.
1232 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1233 instead of allocate_value and set_value_lazy when possible.
1234 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1235 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1236 of allocate_value and set_value_lazy.
1237 (value_from_contents_and_address): Use allocate_value_lazy instead of
1238 allocate_value and set_value_lazy when possible.
1239
1240 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1241
1242 * disasm.c (dump_insns): Support dumping opcodes for MI.
1243 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1244 dumping of instruction opcodes.
1245
1246 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1247
1248 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1249 appropiately.
1250
1251 2011-01-11 Tom Tromey <tromey@redhat.com>
1252
1253 * thread.c (do_captured_thread_select): Emit newline before
1254 printing frame.
1255
1256 2011-01-11 Michael Snyder <msnyder@vmware.com>
1257
1258 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1259 * score-tdep.c: Ditto.
1260 * score-tdep.h: Ditto.
1261 * ser-base.c: Ditto.
1262 * ser-go32.c: Ditto.
1263 * serial.c: Ditto.
1264 * serial.h: Ditto.
1265 * ser-mingw.c: Ditto.
1266 * ser-pipe.c: Ditto.
1267 * ser-tcp.c: Ditto.
1268 * ser-unix.c: Ditto.
1269 * sh64-tdep.c: Ditto.
1270 * shnbsd-nat.c: Ditto.
1271 * sh-tdep.c: Ditto.
1272 * sh-tdep.h: Ditto.
1273 * solib.c: Ditto.
1274 * solib-darwin.c: Ditto.
1275 * solib-frv.c: Ditto.
1276 * solib.h: Ditto.
1277 * solib-irix.c: Ditto.
1278 * solib-osf.c: Ditto.
1279 * solib-pa64.c: Ditto.
1280 * solib-som.c: Ditto.
1281 * solib-spu.c: Ditto.
1282 * solib-sunos.c: Ditto.
1283 * solib-svr4.c: Ditto.
1284 * solist.h: Ditto.
1285 * sol-thread.c: Ditto.
1286 * somread.c: Ditto.
1287 * source.c: Ditto.
1288 * source.h: Ditto.
1289 * sparc64-linux-tdep.c: Ditto.
1290 * sparc64-tdep.c: Ditto.
1291 * sparc-linux-nat.c: Ditto.
1292 * sparc-linux-tdep.c: Ditto.
1293 * sparc-sol2-nat.c: Ditto.
1294 * sparc-sol2-tdep.c: Ditto.
1295 * sparc-tdep.c: Ditto.
1296 * sparc-tdep.h: Ditto.
1297 * spu-tdep.c: Ditto.
1298 * stabsread.c: Ditto.
1299 * stabsread.h: Ditto.
1300 * stack.c: Ditto.
1301 * symfile.c: Ditto.
1302 * symfile.h: Ditto.
1303 * symmisc.c: Ditto.
1304 * symtab.c: Ditto.
1305 * symtab.h: Ditto.
1306 * target.c: Ditto.
1307 * target-descriptions.c: Ditto.
1308 * target-descriptions.h: Ditto.
1309 * target.h: Ditto.
1310 * target-memory.c: Ditto.
1311 * terminal.h: Ditto.
1312 * thread.c: Ditto.
1313 * top.c: Ditto.
1314 * tracepoint.c: Ditto.
1315 * tracepoint.h: Ditto.
1316 * trad-frame.h: Ditto.
1317 * typeprint.c: Ditto.
1318
1319 2011-01-11 Michael Snyder <msnyder@vmware.com>
1320
1321 * ui-file.c: Comment cleanup, mostly periods and spaces.
1322 * ui-file.h: Ditto.
1323 * ui-out.c: Ditto.
1324 * ui-out.h: Ditto.
1325 * utils.c: Ditto.
1326 * v850-tdep.c: Ditto.
1327 * valarith.c: Ditto.
1328 * valops.c: Ditto.
1329 * valprint.c: Ditto.
1330 * valprint.h: Ditto.
1331 * value.c: Ditto.
1332 * value.h: Ditto.
1333 * varobj.c: Ditto.
1334 * varobj.h: Ditto.
1335 * vax-tdep.c: Ditto.
1336 * vec.c: Ditto.
1337 * vec.h: Ditto.
1338 * version.h: Ditto.
1339 * windows-nat.c: Ditto.
1340 * windows-tdep.c: Ditto.
1341 * xcoffread.c: Ditto.
1342 * xcoffsolib.c: Ditto.
1343 * xml-support.c: Ditto.
1344 * xstormy16-tdep.c: Ditto.
1345 * xtensa-tdep.c: Ditto.
1346 * xtensa-tdep.h: Ditto.
1347
1348 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1349
1350 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1351 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1352
1353 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1354 Thiago Jung Bauermann <bauerman@br.ibm.com>
1355
1356 Implement support for PowerPC BookE ranged watchpoints.
1357 * breakpoint.h
1358 (struct breakpoint_ops) <resources_needed>: New method.
1359 Initialize to NULL in all existing breakpoint_ops instances.
1360 (struct breakpoint) <exact>: New field.
1361 (target_exact_watchpoints): Declare external global.
1362 * breakpoint.c (target_exact_watchpoints): New global flag.
1363 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1364 b->enable_state to bp_enabled before calling
1365 hw_watchpoint_used_count.
1366 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1367 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1368 if available.
1369 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1370 if the watchpoint is exact.
1371 (resources_needed_watchpoint): New function.
1372 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1373 (watch_command_1): Set b->exact if the user asked for an exact
1374 watchpoint and one can be set.
1375 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1376 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1377 the user asks for an exact watchpoint and one can be set. Return
1378 number of needed debug registers to watch the expression.
1379 * gdbtypes.c (is_scalar_type): New function, based on
1380 valprint.c:scalar_type_p.
1381 (is_scalar_type_recursive): New function.
1382 * gdbtypes.h (is_scalar_type_recursive): Declare.
1383 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1384 handle regions when ranged watchpoints are available.
1385 (create_watchpoint_request): New function.
1386 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1387 create_watchpoint_request.
1388 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1389 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1390 `set powerpc' and `show powerpc' commands.
1391 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1392 Mention documentation comment in the target macro.
1393 (target_region_ok_for_hw_watchpoint): Document return value.
1394
1395 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1396
1397 * breakpoint.c (update_watchpoint): Decide on using a software or
1398 hardware watchpoint after the bp_locations are created.
1399
1400 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1401
1402 Convert hardware watchpoints to use breakpoint_ops.
1403 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1404 <insert_location>: ... this. Return int instead of void.
1405 Accept pointer to struct bp_location instead of pointer to
1406 struct breakpoint. Adapt all implementations.
1407 (breakpoint_ops) <remove>: Rename to...
1408 <remove_location>: ... this. Accept pointer to struct bp_location
1409 instead of pointer to struct breakpoint. Adapt all implementations.
1410 * breakpoint.c (insert_catchpoint): Delete function.
1411 (insert_bp_location): Call the watchpoint or catchpoint's
1412 breakpoint_ops.insert method.
1413 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1414 breakpoint_ops.remove method.
1415 (insert_watchpoint, remove_watchpoint): New functions.
1416 (watchpoint_breakpoint_ops): New structure.
1417 (watch_command_1): Initialize the OPS field.
1418 * inf-child.c (inf_child_insert_fork_catchpoint)
1419 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1420 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1421 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1422 Delete functions.
1423 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1424 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1425 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1426 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1427 * target.c (update_current_target): Change default implementation of
1428 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1429 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1430 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1431 to_set_syscall_catchpoint to return_one.
1432 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1433 (debug_to_insert_exec_catchpoint): Report return value.
1434 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1435 (to_insert_exec_catchpoint): Change declaration to return int instead
1436 of void.
1437
1438 2011-01-11 Michael Snyder <msnyder@vmware.com>
1439
1440 * arm-tdep.c: Internationalization.
1441 * c-lang.c: Ditto.
1442 * charset.c: Ditto.
1443 * fork-child.c: Ditto.
1444 * nto-procfs.c: Ditto.
1445 * ppc-sysv-tdep.c: Ditto.
1446 * procfs.c: Ditto.
1447 * remote-mips.c: Ditto.
1448 * remote.c: Ditto.
1449 * rs6000-nat.c: Ditto.
1450 * rs6000-tdep.c: Ditto.
1451 * target.c: Ditto.
1452 * valops.c: Ditto.
1453 * value.c: Ditto.
1454 * xml-support.c: Ditto.
1455 * mi/mi-cmd-break.c: Ditto.
1456 * mi/mi-cmd-var.c: Ditto.
1457 * mi/mi-interp.c: Ditto.
1458 * mi/mi-main.c: Ditto.
1459
1460 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1461
1462 * remote-sim.c (gdbsim_store_register): Update API to
1463 sim_store_register to check more error conditions.
1464
1465 2011-01-10 Michael Snyder <msnyder@vmware.com>
1466
1467 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1468 * nto-tdep.c: Ditto.
1469 * nto-tdep.h: Ditto.
1470 * objc-exp.y: Ditto.
1471 * objc-lang.c: Ditto.
1472 * objfiles.c: Ditto.
1473 * objfiles.h: Ditto.
1474 * observer.c: Ditto.
1475 * opencl-lang.c: Ditto.
1476 * osabi.c: Ditto.
1477 * parse.c: Ditto.
1478 * parser-defs.h: Ditto.
1479 * p-exp.y: Ditto.
1480 * p-lang.c: Ditto.
1481 * posix-hdep.c: Ditto.
1482 * ppcbug-rom.c: Ditto.
1483 * ppc-linux-nat.c: Ditto.
1484 * ppc-linux-tdep.c: Ditto.
1485 * ppc-linux-tdep.h: Ditto.
1486 * ppcnbsd-tdep.c: Ditto.
1487 * ppcobsd-tdep.c: Ditto.
1488 * ppcobsd-tdep.h: Ditto.
1489 * ppc-sysv-tdep.c: Ditto.
1490 * ppc-tdep.h: Ditto.
1491 * printcmd.c: Ditto.
1492 * proc-abi.c: Ditto.
1493 * proc-flags.c: Ditto.
1494 * procfs.c: Ditto.
1495 * proc-utils.h: Ditto.
1496 * progspace.h: Ditto.
1497 * prologue-value.c: Ditto.
1498 * prologue-value.h: Ditto.
1499 * psympriv.h: Ditto.
1500 * psymtab.c: Ditto.
1501 * p-typeprint.c: Ditto.
1502 * p-valprint.c: Ditto.
1503 * ravenscar-sparc-thread.c: Ditto.
1504 * ravenscar-thread.c: Ditto.
1505 * ravenscar-thread.h: Ditto.
1506 * record.c: Ditto.
1507 * regcache.c: Ditto.
1508 * regcache.h: Ditto.
1509 * remote.c: Ditto.
1510 * remote-fileio.c: Ditto.
1511 * remote-fileio.h: Ditto.
1512 * remote.h: Ditto.
1513 * remote-m32r-sdi.c: Ditto.
1514 * remote-mips.c: Ditto.
1515 * remote-sim.c: Ditto.
1516 * rs6000-aix-tdep.c: Ditto.
1517 * rs6000-nat.c: Ditto.
1518 * rs6000-tdep.c: Ditto.
1519
1520 2011-01-10 Michael Snyder <msnyder@vmware.com>
1521
1522 * charset.c (validate): Internationalization.
1523 * coffread.c (read_one_sym): Ditto.
1524 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1525 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1526 * inflow.c (new_tty): Ditto.
1527 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1528 * m32c-tdep.c (m32c_return_value): Ditto.
1529 * mep-tdep.c (mep_store_return_value): Ditto.
1530 * score-tdep.c (score7_fetch_insn): Ditto.
1531 * ser-mingw.c (pipe_windows_open): Ditto.
1532 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1533 * spu-tdep.c (spu_register_type): Ditto.
1534 * tracepoint.c (trace_find_command): Ditto.
1535 * valarith.c (value_pos): Ditto.
1536
1537 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1538
1539 * ada-valprint.c (printstr): Minor comment reformatting.
1540
1541 2011-01-08 Michael Snyder <msnyder@vmware.com>
1542
1543 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1544 markup.
1545
1546 2011-01-08 Michael Snyder <msnyder@vmware.com>
1547
1548 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1549 * hppa-hpux-tdep.c: Ditto.
1550 * hppa-linux-nat.c: Ditto.
1551 * hppa-linux-tdep.c: Ditto.
1552 * hppanbsd-tdep.c: Ditto.
1553 * hppa-tdep.c: Ditto.
1554 * hppa-tdep.h: Ditto.
1555 * hpux-thread.c: Ditto.
1556 * i386-cygwin-tdep.c: Ditto.
1557 * i386-darwin-nat.c: Ditto.
1558 * i386gnu-nat.c: Ditto.
1559 * i386-linux-nat.c: Ditto.
1560 * i386-linux-tdep.c: Ditto.
1561 * i386-nat.c: Ditto.
1562 * i386-nat.h: Ditto.
1563 * i386nbsd-tdep.c: Ditto.
1564 * i386-sol2-nat.c: Ditto.
1565 * i386-stub.c: Ditto.
1566 * i386-tdep.c: Ditto.
1567 * i386-tdep.h: Ditto.
1568 * i387-tdep.c: Ditto.
1569 * ia64-linux-nat.c: Ditto.
1570 * ia64-linux-tdep.c: Ditto.
1571 * ia64-tdep.c: Ditto.
1572 * infcall.c: Ditto.
1573 * infcall.h: Ditto.
1574 * infcmd.c: Ditto.
1575 * inferior.c: Ditto.
1576 * inferior.h: Ditto.
1577 * infloop.c: Ditto.
1578 * inflow.c: Ditto.
1579 * infrun.c: Ditto.
1580 * interps.c: Ditto.
1581 * interps.h: Ditto.
1582 * iq2000-tdep.c: Ditto.
1583 * irix5-nat.c: Ditto.
1584 * jit.c: Ditto.
1585 * jit.h: Ditto.
1586 * jv-exp.y: Ditto.
1587 * jv-lang.c: Ditto.
1588 * jv-lang.h: Ditto.
1589 * jv-typeprint.c: Ditto.
1590 * jv-valprint.c: Ditto.
1591 * language.c: Ditto.
1592 * language.h: Ditto.
1593 * linespec.c: Ditto.
1594 * linux-fork.c: Ditto.
1595 * linux-nat.c: Ditto.
1596 * linux-thread-db.c: Ditto.
1597 * lm32-tdep.c: Ditto.
1598
1599 2011-01-08 Michael Snyder <msnyder@vmware.com>
1600
1601 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1602 * m2-lang.c: Ditto.
1603 * m2-typeprint.c: Ditto.
1604 * m2-valprint.c: Ditto.
1605 * m32c-tdep.c: Ditto.
1606 * m32r-linux-nat.c: Ditto.
1607 * m32r-rom.c: Ditto.
1608 * m32r-tdep.c: Ditto.
1609 * m32r-tdep.h: Ditto.
1610 * m68hc11-tdep.c: Ditto.
1611 * m58klinux-nat.c: Ditto.
1612 * m68k-tdep.c: Ditto.
1613 * m88k-tdep.c: Ditto.
1614 * m88k-tdep.h: Ditto.
1615 * machoread.c: Ditto.
1616 * macrocmd.c: Ditto.
1617 * macroexp.c: Ditto.
1618 * macrotab.c: Ditto.
1619 * main.c: Ditto.
1620 * maint.c: Ditto.
1621 * mdebugread.c: Ditto.
1622 * mdebugread.h: Ditto.
1623 * memattr.c: Ditto.
1624 * memattr.h: Ditto.
1625 * memory-map.h: Ditto.
1626 * mep-tdep.c: Ditto.
1627 * microblaze-rom.c: Ditto.
1628 * microblaze-tdep.c: Ditto.
1629 * minsyms.c: Ditto.
1630 * mips-irix-tdep.c: Ditto.
1631 * mips-linux-nat.c: Ditto.
1632 * mips-linux-tdep.c: Ditto.
1633 * mips-linux-tdep.h: Ditto.
1634 * mipsnbsd-nat.c: Ditto.
1635 * mipsnbsd-tdep.c: Ditto.
1636 * mipsread.c: Ditto.
1637 * mips-tdep.c: Ditto.
1638 * mips-tdep.h: Ditto.
1639 * mn10300-linux-tdep.c: Ditto.
1640 * mn10300-tdep.c: Ditto.
1641 * mn10300-tdep.h: Ditto.
1642 * monitor.c: Ditto.
1643 * monitor.h: Ditto.
1644 * moxie-tdep.c: Ditto.
1645 * moxie-tdep.h: Ditto.
1646 * mt-tdep.c: Ditto.
1647
1648 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1649
1650 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1651
1652 2011-01-08 Robert Millan <rmh@gnu.org>
1653
1654 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1655
1656 2011-01-07 Michael Snyder <msnyder@vmware.com>
1657
1658 * charset.c (_initialize_charset): Fix typo in string.
1659
1660 2011-01-07 Michael Snyder <msnyder@vmware.com>
1661
1662 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1663 for i18n.
1664 * tui/tui-layout.c (tui_set_layout_for_display_command):
1665 Split line so that operator goes to beginning of line.
1666 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1667 assignment out of if statement.
1668
1669 2011-01-07 Michael Snyder <msnyder@vmware.com>
1670
1671 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1672 * ada-lang.h: Ditto.
1673 * ada-tasks.c: Ditto.
1674 * ada-valprint.c: Ditto.
1675 * aix-threads.c: Ditto.
1676 * alpha-linux-nat.c: Ditto.
1677 * alpha-linux-tdep.c: Ditto.
1678 * alpha-mdebug-tdep.c: Ditto.
1679 * alpha-nat.c: Ditto.
1680 * alpha-osf1-tdep.c: Ditto.
1681 * alpha-tdep.c: Ditto.
1682 * alphabsd-nat.c: Ditto.
1683 * alphabsd-tdep.c: Ditto.
1684 * amd64-darwin-tdep.c: Ditto.
1685 * amd64-linux-nat.c: Ditto.
1686 * amd64-linux-tdep.c: Ditto.
1687 * amd64-sol2-tdep.c: Ditto.
1688 * amd64-tdep.c: Ditto.
1689 * amd64-fbsd-tdep.c: Ditto.
1690 * amd64-nbsd-tdep.c: Ditto.
1691 * amd64-obsd-tdep.c: Ditto.
1692 * amd64-linux-nat.c: Ditto.
1693 * amd64-linux-tdep.c: Ditto.
1694 * arm-tdep.c: Ditto.
1695 * arm-tdep.h: Ditto.
1696 * armnbsd-nat.c: Ditto.
1697 * avr-tdep.c: Ditto.
1698 * bfin-tdep.c: Ditto.
1699 * bsd-kvm.c: Ditto.
1700 * c-typeprintc: Ditto.
1701 * c-valprint.c: Ditto.
1702 * coff-pe-read.h: Ditto.
1703 * coffreead.c: Ditto.
1704 * cris-tdep.c: Ditto.
1705 * d-lang.c: Ditto.
1706 * darwin-nat-info.c: Ditto.
1707 * darwin-nat.c: Ditto.
1708 * dbug-rom.c: Ditto.
1709 * dbxread.c: Ditto.
1710 * dcache.c: Ditto.
1711 * dcache.h: Ditto.
1712 * dec-thread.c: Ditto.
1713 * defs.h: Ditto.
1714 * demangle.c: Ditto.
1715 * dicos-tdep.c: Ditto.
1716 * dictionary.c: Ditto.
1717 * dictionary.h: Ditto.
1718 * dink32-rom.c: Ditto.
1719 * disasm.c: Ditto.
1720 * doublest.c: Ditto.
1721 * dsrec.c: Ditto.
1722 * dummy-frame.c: Ditto.
1723 * dwarf2-frame.c: Ditto.
1724 * dwarf2expr.c: Ditto.
1725 * dwarf2loc.c: Ditto.
1726 * dwarf2read.c: Ditto.
1727 * elfread.c: Ditto.
1728 * environ.c: Ditto.
1729 * eval.c: Ditto.
1730 * event-top.h: Ditto.
1731 * exceptions.c: Ditto.
1732 * exceptions.h: Ditto.
1733 * exec.c: Ditto.
1734 * expprint.c: Ditto.
1735 * expression.h: Ditto.
1736 * f-exp.y: Ditto.
1737 * f-lang.c: Ditto.
1738 * f-lang.h: Ditto.
1739 * f-typeprint.c: Ditto.
1740 * f-valprint.c: Ditto.
1741 * fbsd-nat.c: Ditto.
1742 * findvar.c: Ditto.
1743 * fork-child.c: Ditto.
1744 * frame.c: Ditto.
1745 * frame.h: Ditto.
1746 * frv-linux-tdep.c: Ditto.
1747 * frv-tdep.c: Ditto.
1748 * gcore.c: Ditto.
1749 * gdb-stabs.h: Ditto.
1750 * gdb_assert.h: Ditto.
1751 * gdb_string.h: Ditto.
1752 * gdb_thread_db.h: Ditto.
1753 * gdb_wait.h: Ditto.
1754 * gdbarch.sh: Ditto.
1755 * gdbcore.h: Ditto.
1756 * gdbthread.h: Ditto.
1757 * gdbtypes.c: Ditto.
1758 * gdbtypes.h: Ditto.
1759 * gnu-nat.c: Ditto.
1760 * gnu-nat.h: Ditto.
1761 * gnu-v2-abi.c: Ditto.
1762 * gnu-v3-abi.c: Ditto.
1763 * go32-nat.c: Ditto.
1764 * gdbarch.c: Regenerate.
1765 * gdbarch.h: Regenerate.
1766
1767 2011-01-07 Michael Snyder <msnyder@vmware.com>
1768
1769 * ax-gdb.c: Adjust some long output strings.
1770 * breakpoint.c: Ditto.
1771 * charset.c: Ditto.
1772 * cp-abi.c: Ditto.
1773 * infcall.c: Ditto.
1774 * infrun.c: Ditto.
1775 * linux-nat.c: Ditto.
1776 * solib-pa64.c: Ditto.
1777 * solib-som.c: Ditto.
1778
1779 2011-01-06 Tom Tromey <tromey@redhat.com>
1780
1781 PR python/12367:
1782 * NEWS: Add item.
1783 * python/python.c (GdbMethods): Add "newest_frame" method.
1784 * python/python-internal.h (gdbpy_newest_frame): Declare.
1785 * python/py-frame.c (gdbpy_newest_frame): New function.
1786
1787 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1788
1789 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1790 * jit.c (jit_debug): New variable.
1791 (show_jit_debug): New function.
1792 (struct target_buffer): Use ULONGEST.
1793 (bfd_open_from_target_memory): Likewise.
1794 (jit_register_code, jit_inferior_init): Add debug output.
1795 (_initialize_jit): Register "debug jit" command.
1796
1797 2011-01-06 Tom Tromey <tromey@redhat.com>
1798
1799 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1800 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1801 and ARCH_FRAME.
1802
1803 2011-01-06 Tom Tromey <tromey@redhat.com>
1804
1805 * python/py-frame.c (frapy_block): Use get_frame_block.
1806
1807 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1808
1809 Do not stop on SIGPRIO signals by default
1810 * infrun.c (_initialize_infrun): Unset signal_stop and
1811 signal_print for TARGET_SIGNAL_PRIO.
1812
1813 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1814
1815 * ada-tasks.c: Fix style violation in comment.
1816
1817 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1818
1819 * linespec.c (decode_compound, find_method): Remove trailing \n
1820 at end of error string.
1821 * solib-irix.c (irix_current_sos): Likewise.
1822 * varobj.c (uninstall_variable): Likewise.
1823
1824 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1825
1826 * copyright.py: New script.
1827 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1828 Launch emacs without exec'ing. Call copyright.py afterwards.
1829
1830 2011-01-05 Michael Snyder <msnyder@vmware.com>
1831
1832 * addrmap.c: Shorten lines of >= 80 columns.
1833 * arch-utils.c: Ditto.
1834 * arch-utils.h: Ditto.
1835 * ax-gdb.c: Ditto.
1836 * ax-general.c: Ditto.
1837 * bcache.c: Ditto.
1838 * blockframe.c: Ditto.
1839 * breakpoint.c: Ditto.
1840 * buildsym.c: Ditto.
1841 * c-lang.c: Ditto.
1842 * c-typeprint.c: Ditto.
1843 * charset.c: Ditto.
1844 * coffread.c: Ditto.
1845 * command.h: Ditto.
1846 * corelow.c: Ditto.
1847 * cp-abi.c: Ditto.
1848 * cp-namespace.c: Ditto.
1849 * cp-support.c: Ditto.
1850 * dbug-rom.c: Ditto.
1851 * dbxread.c: Ditto.
1852 * defs.h: Ditto.
1853 * dfp.c: Ditto.
1854 * dfp.h: Ditto.
1855 * dictionary.c: Ditto.
1856 * disasm.c: Ditto.
1857 * doublest.c: Ditto.
1858 * dwarf2-frame.c: Ditto.
1859 * dwarf2expr.c: Ditto.
1860 * dwarf2loc.c: Ditto.
1861 * dwarf2read.c: Ditto.
1862 * elfread.c: Ditto.
1863 * eval.c: Ditto.
1864 * event-loop.c: Ditto.
1865 * event-loop.h: Ditto.
1866 * exceptions.h: Ditto.
1867 * exec.c: Ditto.
1868 * expprint.c: Ditto.
1869 * expression.h: Ditto.
1870 * f-lang.c: Ditto.
1871 * f-valprint.c: Ditto.
1872 * findcmd.c: Ditto.
1873 * frame-base.c: Ditto.
1874 * frame-unwind.c: Ditto.
1875 * frame-unwind.h: Ditto.
1876 * frame.c: Ditto.
1877 * frame.h: Ditto.
1878 * gcore.c: Ditto.
1879 * gdb-stabs.h: Ditto.
1880 * gdb_assert.h: Ditto.
1881 * gdb_dirent.h: Ditto.
1882 * gdb_obstack.h: Ditto.
1883 * gdbcore.h: Ditto.
1884 * gdbtypes.c: Ditto.
1885 * gdbtypes.h: Ditto.
1886 * inf-ttrace.c: Ditto.
1887 * infcall.c: Ditto.
1888 * infcmd.c: Ditto.
1889 * inflow.c: Ditto.
1890 * infrun.c: Ditto.
1891 * inline-frame.h: Ditto.
1892 * language.c: Ditto.
1893 * language.h: Ditto.
1894 * libunwind-frame.c: Ditto.
1895 * libunwind-frame.h: Ditto.
1896 * linespec.c: Ditto.
1897 * linux-nat.c: Ditto.
1898 * linux-nat.h: Ditto.
1899 * linux-thread-db.c: Ditto.
1900 * machoread.c: Ditto.
1901 * macroexp.c: Ditto.
1902 * macrotab.c: Ditto.
1903 * main.c: Ditto.
1904 * maint.c: Ditto.
1905 * mdebugread.c: Ditto.
1906 * memattr.c: Ditto.
1907 * minsyms.c: Ditto.
1908 * monitor.c: Ditto.
1909 * monitor.h: Ditto.
1910 * objfiles.c: Ditto.
1911 * objfiles.h: Ditto.
1912 * osabi.c: Ditto.
1913 * p-typeprint.c: Ditto.
1914 * p-valprint.c: Ditto.
1915 * parse.c: Ditto.
1916 * printcmd.c: Ditto.
1917 * proc-events.c: Ditto.
1918 * procfs.c: Ditto.
1919 * progspace.c: Ditto.
1920 * progspace.h: Ditto.
1921 * psympriv.h: Ditto.
1922 * psymtab.c: Ditto.
1923 * record.c: Ditto.
1924 * regcache.c: Ditto.
1925 * regcache.h: Ditto.
1926 * remote-fileio.c: Ditto.
1927 * remote.c: Ditto.
1928 * ser-mingw.c: Ditto.
1929 * ser-tcp.c: Ditto.
1930 * ser-unix.c: Ditto.
1931 * serial.c: Ditto.
1932 * serial.h: Ditto.
1933 * solib-frv.c: Ditto.
1934 * solib-irix.c: Ditto.
1935 * solib-osf.c: Ditto.
1936 * solib-pa64.c: Ditto.
1937 * solib-som.c: Ditto.
1938 * solib-sunos.c: Ditto.
1939 * solib-svr4.c: Ditto.
1940 * solib-target.c: Ditto.
1941 * solib.c: Ditto.
1942 * somread.c: Ditto.
1943 * source.c: Ditto.
1944 * stabsread.c: Ditto.
1945 * stabsread.c: Ditto.
1946 * stack.c: Ditto.
1947 * stack.h: Ditto.
1948 * symfile-mem.c: Ditto.
1949 * symfile.c: Ditto.
1950 * symfile.h: Ditto.
1951 * symmisc.c: Ditto.
1952 * symtab.c: Ditto.
1953 * symtab.h: Ditto.
1954 * target-descriptions.c: Ditto.
1955 * target-memory.c: Ditto.
1956 * target.c: Ditto.
1957 * target.h: Ditto.
1958 * terminal.h: Ditto.
1959 * thread.c: Ditto.
1960 * top.c: Ditto.
1961 * tracepoint.c: Ditto.
1962 * tracepoint.h: Ditto.
1963 * ui-file.c: Ditto.
1964 * ui-file.h: Ditto.
1965 * ui-out.h: Ditto.
1966 * user-regs.c: Ditto.
1967 * user-regs.h: Ditto.
1968 * utils.c: Ditto.
1969 * valarith.c: Ditto.
1970 * valops.c: Ditto.
1971 * valprint.c: Ditto.
1972 * valprint.h: Ditto.
1973 * value.c: Ditto.
1974 * varobj.c: Ditto.
1975 * varobj.h: Ditto.
1976 * vec.h: Ditto.
1977 * xcoffread.c: Ditto.
1978 * xcoffsolib.c: Ditto.
1979 * xcoffsolib.h: Ditto.
1980 * xml-syscall.c: Ditto.
1981 * xml-tdesc.c: Ditto.
1982
1983 2011-01-05 Michael Snyder <msnyder@vmware.com>
1984
1985 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
1986 * cli/cli-decode.c: Ditto.
1987 * cli/cli-dump.c: Ditto.
1988 * cli/cli-logging.c: Ditto.
1989 * cli/cli-script.c: Ditto.
1990 * cli/cli-setshow.c: Ditto.
1991 * common/signals.c: Ditto.
1992 * mi/mi-cmd-break.c: Ditto.
1993 * mi/mi-cmd-disas.c: Ditto.
1994 * mi/mi-cmd-stack.c: Ditto.
1995 * mi/mi-cmd-var.c: Ditto.
1996 * mi/mi-cmds.c: Ditto.
1997 * mi/mi-common.h: Ditto.
1998 * mi/mi-console.c: Ditto.
1999 * mi/mi-interp.c: Ditto.
2000 * mi/mi-main.c: Ditto.
2001 * osf-share/cma_attr.c: Ditto.
2002 * osf-share/cma_deb_core.h: Ditto.
2003 * osf-share/cma_debug_client.h: Ditto.
2004 * osf-share/cma_handle.h: Ditto.
2005 * osf-share/cma_mutex.h: Ditto.
2006 * osf-share/cma_stack_int.h: Ditto.
2007 * osf-share/cma_tcb_defs.h: Ditto.
2008 * python/py-auto-load.c: Ditto.
2009 * python/py-breakpoint.c: Ditto.
2010 * python/py-cmd.c: Ditto.
2011 * python/py-frame.c: Ditto.
2012 * python/py-objfile.c: Ditto.
2013 * python/py-param.c: Ditto.
2014 * python/py-progspace.c: Ditto.
2015 * python/py-symbol.c: Ditto.
2016 * python/py-value.c: Ditto.
2017 * python/python-internal.h: Ditto.
2018 * python/python.c: Ditto.
2019 * tui/tui-data.c: Ditto.
2020 * tui/tui-disasm.c: Ditto.
2021 * tui/tui-hooks.c: Ditto.
2022 * tui/tui-io.c: Ditto.
2023 * tui/tui-layout.c: Ditto.
2024 * tui/tui-regs.c: Ditto.
2025 * tui/tui-source.c: Ditto.
2026 * tui/tui-stack.c: Ditto.
2027 * tui/tui-win.c: Ditto.
2028 * tui/tui-windata.c: Ditto.
2029 * tui/tui-winsource.c: Ditto.
2030
2031 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2032
2033 * configure.ac, gdb.1: Copyright year update.
2034
2035 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2036
2037 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2038 this_pc_in_block, morestack_msym and morestack_name. Check for
2039 "__morestack" minimal symbol there.
2040
2041 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2042
2043 * symfile.c (find_sym_fns): Add call to dont_repeat.
2044
2045 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2046
2047 Copyright year update in most files (performed by copyright.sh).
2048
2049 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2050
2051 * top.c (print_gdb_version): Update copyright year in version output.
2052
2053 For older changes see ChangeLog-2010.
2054 \f
2055 Local Variables:
2056 mode: change-log
2057 left-margin: 8
2058 fill-column: 74
2059 version-control: never
2060 coding: utf-8
2061 End:
This page took 0.106889 seconds and 5 git commands to generate.