2011-05-26 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12011-05-26 Pedro Alves <pedro@codesourcery.com>
2
3 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5 Internal error on invalid values.
6 * reverse.c: Don't handle EXEC_ERROR.
7 * mi/mi-main.c: Don't handle EXEC_ERROR.
8
92011-05-26 Pedro Alves <pedro@codesourcery.com>
10
11 * record.c: Include event-loop.h, inf-loop.h.
12 (record_beneath_to_async): New global.
13 (tmp_to_async): New global.
14 (record_async_inferior_event_token): New global.
15 (record_open_1): Don't error out if async is enabled.
16 (record_open): Handle to_async. Create an async event source in
17 the event loop.
18 (record_close): Delete the async event source.
19 (record_resumed): New global.
20 (record_execution_dir): New global.
21 (record_resume, record_core_resume): Set them. Register the
22 target on the event loop.
23 (record_wait): Rename to ...
24 (record_wait_1): ... this. Add more debug output. Handle
25 TARGET_WNOHANG, and the target beneath returning
26 TARGET_WAITKIND_IGNORE.
27 (record_wait): Reimplement on top of record_wait_1.
28 (record_async_mask_value): New global.
29 (record_async, record_async_mask, record_can_async_p)
30 (record_is_async_p, record_execution_direction): New functions.
31 (init_record_ops, init_record_core_ops): Install new methods.
32 * infrun.c (fetch_inferior_event): Temporarily switch the global
33 execution direction to the direction the target was going.
34 (execution_direction): Change type to int.
35 * target.c (default_execution_direction): New function.
36 (update_current_target): Inherit and de_fault
37 to_execution_direction.
38 * target.h (struct target_ops) <to_execution_direction>: New
39 field.
40 (target_execution_direction): New macro.
41 * inferior.h (execution_direction): Change type to int.
42
432011-05-26 Pedro Alves <pedro@codesourcery.com>
44
45 * infcall.c (call_function_by_hand): Don't allow calling functions
46 in reverse execution mode.
47
482011-05-26 Pedro Alves <pedro@codesourcery.com>
49
50 * infcmd.c (finish_command): Allow async finish in reverse.
51
522011-05-26 Yao Qi <yao@codesourcery.com>
53
54 * gdb_thread_db.h: Delete. Move to ...
55 * common/gdb_thread_db.h: ... here.
56
572011-05-26 Pedro Alves <pedro@codesourcery.com>
58
59 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
60 function's entry point instead of a manually managed momentary
61 breakpoint, and only ever issue one proceed call.
62 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
63 doing a reverse-finish, switch to stepi mode, to do another step.
64 (insert_step_resume_breakpoint_at_sal): Make public.
65 (normal_stop): No need to save function value return registers if
66 going reverse.
67 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
68
692011-05-26 Pedro Alves <pedro@codesourcery.com>
70
71 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
72 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
73 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
74 at the end.
75 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
76 step-resume breakpoints.
77 (print_it_typical): Handle bp_hp_step_resume.
78 (bpstat_what): Ditto.
79 (bptype_string): Ditto.
80 (print_one_breakpoint_location): Ditto.
81 (allocate_bp_location): Ditto.
82 (mention): Ditto.
83 (breakpoint_re_set_one): Ditto.
84 * infrun.c (handle_inferior_event): Adjust. Split
85 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
86 BPSTAT_WHAT_HP_STEP_RESUME.
87 (insert_step_resume_breakpoint_at_sal): Rename to ...
88 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
89 parameter. Handle it.
90 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
91 insert_step_resume_breakpoint_at_sal_1.
92 (insert_step_resume_breakpoint_at_frame): Rename to ...
93 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
94 set a high-priority step-resume breakpoint.
95 (insert_step_resume_breakpoint_at_frame): Adjust comment.
96 (insert_step_resume_breakpoint_at_caller): Ditto.
97
982011-05-26 Pedro Alves <pedro@codesourcery.com>
99
100 * breakpoint.c (iterate_over_related_breakpoints): New.
101 (do_map_delete_breakpoint): New.
102 (delete_command): Pass do_map_delete_breakpoint to
103 map_breakpoint_numbers.
104 (do_disable_breakpoint): New.
105 (do_map_disable_breakpoint): Iterate over the breakpoint's related
106 breakpoints.
107 (do_enable_breakpoint): Rename to ...
108 (enable_breakpoint_disp): ... this.
109 (enable_breakpoint): Adjust.
110 (do_enable_breakpoint): New.
111 (enable_once_breakpoint): Delete.
112 (do_map_enable_breakpoint): New.
113 (do_map_enable_once_breakpoint): New.
114 (enable_once_command, enable_delete_command)
115 (delete_trace_command): Iterate over the breakpoint's related
116 breakpoints.
117
1182011-05-26 Pedro Alves <pedro@codesourcery.com>
119
120 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
121 for ALPHA_ZERO_REGNUM.
122 (alpha_supply_int_regs): Explicitly supply zero as the value for
123 ALPHA_ZERO_REGNUM in the register cache.
124 * alpha-nat.c (fetch_osf_core_registers): Ditto.
125
1262011-05-26 Yao Qi <yao@codesourcery.com>
127
128 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
129
1302011-05-26 Tristan Gingold <gingold@adacore.com>
131
132 * symfile.h (struct dwarf2_section_names): New type.
133 (struct dwarf2_debug_sections): New type.
134 (dwarf2_has_info): Add parameter.
135 * dwarf2read.c (dwarf2_elf_names): New variable.
136 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
137 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
138 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
139 (dwarf2_has_info): Add names parameter. Pass names
140 to dwarf2_locate_sections.
141 (section_is_p): Rewrite using the names parameter.
142 (dwarf2_locate_sections): Use section names from the names parameter.
143 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
144 * elfread.c (read_psyms): Ditto.
145 * machoread.c (macho_symfile_read): Ditto.
146
1472011-05-25 Andreas Schwab <schwab@redhat.com>
148
149 PR gdb/8677
150 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
151
1522011-05-24 Keith Seitz <keiths@redhat.com>
153
154 PR breakpoint/12803
155 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
156 (decode_compound): Unconditionally call keep_name_info.
157
1582011-05-24 Pedro Alves <pedro@codesourcery.com>
159
160 * breakpoint.c (watchpoint_check): If the watchpoint went out of
161 scope, clear its command list.
162 (map_breakpoint_numbers): Don't walk the related breakpoints list
163 of each breakpoint.
164
1652011-05-24 Tom Tromey <tromey@redhat.com>
166
167 * MAINTAINERS: Move Jim Blandy to past maintainers.
168
1692011-05-24 Tristan Gingold <gingold@adacore.com>
170
171 * symfile.h (enum dwarf2_section_enum): New type.
172 (dwarf2_get_section_info): New prototype.
173 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
174 section_name by sect. Use a switch to select the info.
175 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
176 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
177
1782011-05-24 Pedro Alves <pedro@codesourcery.com>
179
180 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
181 shared library event breakpoint if there's no execution.
182
1832011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
184
185 * breakpont.c (remove_hw_watchpoints): Remove unused function.
186 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
187
1882011-05-23 Tom Tromey <tromey@redhat.com>
189
190 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
191 NULL.
192
1932011-05-23 Doug Evans <dje@google.com>
194
195 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
196 entry for RuntimeError to doc string.
197
1982011-05-23 Jerome Guitton <guitton@adacore.com>
199
200 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
201 sequence for probing loops.
202
2032011-05-23 Pedro Alves <pedro@codesourcery.com>
204
205 * infrun.c (user_visible_resume_ptid): Fix typos in describing
206 comment.
207
2082011-05-21 Mark Kettenis <kettenis@gnu.org>
209
210 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
211 zero as the value for %g0 in the register cache.
212 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
213 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
214
2152011-05-20 Pedro Alves <pedro@codesourcery.com>
216
217 * infrun.c (proceed): Set previous_inferior_ptid here.
218 (init_wait_for_inferior): Initialize previous_inferior_ptid from
219 inferior_ptid, not null_ptid.
220 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
221 (fetch_inferior_event): Nor here.
222
2232011-05-20 Pedro Alves <pedro@codesourcery.com>
224
225 * inf-loop.c (inferior_event_handler): Only output a message if
226 verbose.
227
2282011-05-20 Luis Machado <lgustavo@codesourcery.com>
229
230 * MAINTAINERS: Update my e-mail address.
231
2322011-05-20 Pedro Alves <pedro@codesourcery.com>
233
234 * infrun.c (proceed): Switch the inferior event loop to
235 INF_EXEC_COMPLETE if the target refused to resume from a
236 vfork/fork.
237
2382011-05-20 Pedro Alves <pedro@codesourcery.com>
239
240 * infcmd.c: Include "inf-loop.h".
241 (step_once): When stepping into an inline subroutine, pretend the
242 target has run. If the target can async, switch the inferior
243 event loop to INF_EXEC_COMPLETE.
244 * inferior.h (user_visible_resume_ptid): Declare.
245 * infrun.c (user_visible_resume_ptid): New function, factored out
246 from `resume'.
247 (resume): Use it.
248 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
249 that the current thread is running. Merge async and sync
250 branches.
251
2522011-05-20 Pedro Alves <pedro@codesourcery.com>
253
254 * infcmd.c (step_1): Simplify synchronous case.
255
2562011-05-20 Pedro Alves <pedro@codesourcery.com>
257
258 * tracepoint.c: Include exceptions.h.
259 (TFILE_PID): Move higher in file.
260 (tfile_open): Delay pushing the tfile target until we're assured
261 the tfile header is present in the file. Wrap reading the initial
262 newline-terminated lines in TRY_CATCH. Pop the target if the
263 initial setup failed. Add the tfile's thread immediately
264 aftwards, before any non-essential setup. Don't skip
265 post_create_inferior if there are no traceframes present in the
266 file.
267 (tfile_close): Remove redundant check for null before xfree call.
268 (tfile_thread_alive): New function.
269 (init_tfile_ops): Register it as to_thread_alive callback.
270
2712011-05-20 Pedro Alves <pedro@codesourcery.com>
272
273 * tracepoint.c (tfile_open): Delete #if 0'd code.
274
2752011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
276
277 Fix -readnow for -gdwarf-4 unused type units.
278 * dwarf2read.c (struct signatured_type): Remove the field offset.
279 (create_signatured_type_table_from_index): Remove its initialization.
280 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
281 instead. Add a complaint call.
282 (process_psymtab_comp_unit): Change assignment to gdb_assert.
283 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
284 (lookup_signatured_type_at_offset, read_signatured_type)
285 (write_one_signatured_type): Update the field for per_cu.
286
2872011-05-19 Tom Tromey <tromey@redhat.com>
288
289 * python/py-inferior.c (python_inferior_exit): Use
290 target_gdbarch.
291 (python_on_resume): Likewise.
292
2932011-05-19 Matt Rice <ratmice@gmail.com>
294
295 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
296
2972011-05-19 Hui Zhu <teawater@gmail.com>
298
299 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
300
3012011-05-19 Hui Zhu <teawater@gmail.com>
302
303 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
304
3052011-05-18 Tom Tromey <tromey@redhat.com>
306
307 * dwarf2read.c (dwarf2_add_field): Constify.
308 * value.c (value_static_field): Constify.
309 * gdbtypes.h (struct main_type) <field.field_location.physname>:
310 Now const.
311 * ax-gdb.c (gen_static_field): Constify
312
3132011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
314
315 * linux-nat.c (kill_callback): Use SIGKILL first.
316
3172011-05-18 Joel Brobecker <brobecker@adacore.com>
318
319 * ada-lang.c (print_it_exception): Avoid use of sprintf.
320
3212011-05-18 Tom Tromey <tromey@redhat.com>
322
323 * value.c (value_fn_field): Constify.
324 * symtab.c (gdb_mangle_name): Constify.
325 * stabsread.c (update_method_name_from_physname): Make 'physname'
326 argument const.
327 * p-typeprint.c (pascal_type_print_method_args): Make arguments
328 const. Use explicit fputc_filtered loop.
329 (pascal_type_print_base): Constify.
330 * p-lang.h (pascal_type_print_method_args): Update.
331 * linespec.c (add_matching_methods): Constify.
332 (add_constructors): Likewise.
333 * jv-typeprint.c (java_type_print_base): Constify.
334 * gdbtypes.h (struct cplus_struct_type)
335 <fn_fieldlist.fn_field.physname>: Now const.
336 * dwarf2read.c (compute_delayed_physnames): Constify.
337 (dwarf2_add_member_fn): Likewise.
338 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
339
3402011-05-18 Pedro Alves <pedro@codesourcery.com>
341
342 * infrun.c (resume): Mention which is the current thread, and its
343 current PC in debug output.
344 (prepare_to_proceed): Mention the thread switching in debug
345 output.
346
3472011-05-18 Tom Tromey <tromey@redhat.com>
348
349 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
350 path check. Use xmalloc and cleanups.
351 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
352
3532011-05-17 Tom Tromey <tromey@redhat.com>
354
355 * cp-valprint.c (cp_print_value_fields): Catch errors from
356 value_static_field.
357
3582011-05-17 Tom Tromey <tromey@redhat.com>
359
360 * dwarf2read.c (dwarf2_get_die_type): Call
361 get_die_type_at_offset.
362 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
363 get_base_type function.
364
3652011-05-17 Tomas Martinec <fyzmat@gmail.com>
366
367 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
368 trap_expected.
369
3702011-05-16 Doug Evans <dje@google.com>
371
372 * python/py-auto-load.c (source_section_scripts): Mention objfile
373 name in warning.
374
3752011-05-15 Doug Evans <dje@google.com>
376
377 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
378 (try_thread_db_load_from_pdir): Call it. If unable to find
379 libthread_db in directory of libpthread, see if we're looking at
380 the separate-debug-info copy.
381
382 * python/py-autoload.c (print_script): Print "Missing" instead of
383 "No" for missing scripts.
384 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
385
3862011-05-13 Doug Evans <dje@google.com>
387
388 * ui-file.c (stdio_file_write_async_safe): Add comment.
389
3902011-05-14 Hui Zhu <teawater@gmail.com>
391
392 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
393
3942011-05-13 Doug Evans <dje@google.com>
395
396 Support $pdir and $sdir in libthread-db-search-path.
397 * NEWS: Mention $sdir,$pdir.
398 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
399 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
400 (try_thread_db_load_from_sdir): New function.
401 (try_thread_db_load_from_dir): New function.
402 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
403 system directories if search of libthread-db-search-path fails,
404 that is now done via $sdir.
405 (has_libpthread): New function.
406 (thread_db_load): Remove search for libthread_db in directory of
407 libpthread, that is now done via $pdir.
408
409 * NEWS: Mention "info auto-load-scripts".
410 * python/py-auto-load.c (struct auto_load_pspace_info): New member
411 script_not_found_warning_printed.
412 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
413 all callers updated. Initialize script_not_found_warning_printed.
414 (get_auto_load_pspace_data_for_loading): New function.
415 (maybe_add_script): New function.
416 (source_section_scripts): Simplify. Only print one warning regardless
417 of the number of auto-load scripts not found.
418 (clear_section_scripts): Clear script_not_found_warning_printed.
419 (auto_load_objfile_script): Record script in hash table.
420 (count_matching_scripts): New function.
421 (maybe_print_script): Renamed from maybe_print_section_script, all
422 callers updated. Rewrite to use ui_out_*.
423 (info_auto_load_scripts): Renamed from
424 maintenance_print_section_scripts, all callers updated.
425 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
426 renamed as "info auto-load-scripts".
427
4282011-05-13 Tom Tromey <tromey@redhat.com>
429
430 * dwarf2expr.c (read_uleb128): Cast intermediate result.
431 (read_sleb128): Likewise.
432
4332011-05-13 Tom Tromey <tromey@redhat.com>
434
435 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
436 offset display.
437
4382011-05-13 Doug Evans <dje@google.com>
439
440 * linux-nat.c (debug_linux_nat_async): Delete.
441 Replace all references to use debug_linux_nat instead.
442 (show_debug_linux_nat_async): Delete.
443 (sigchld_handler): Call ui_file_write_async_safe instead of
444 fprintf_unfiltered.
445 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
446 * ui-file.c (struct ui_file): New member to_write_async_safe.
447 (null_file_write_async_safe): New function.
448 (ui_file_write_async_safe): New function.
449 (set_ui_file_write_async_safe): New function.
450 (ui_file_new): Initialize to_write_async_safe.
451 (stdio_file_write_async_safe): New function.
452 (struct stdio_file): New member fd.
453 (stdio_file_new): Initialize to_write_async_safe, fd.
454 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
455 fileno.
456 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
457 (set_ui_file_write_async_safe): Declare.
458 (ui_file_write_async_safe): Declare.
459
4602011-05-13 Tom Tromey <tromey@redhat.com>
461
462 * utils.c (do_value_free): New function.
463 (make_cleanup_value_free): Likewise.
464 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
465 freeing correctly.
466 (dwarf2_loc_desc_needs_frame): Call
467 make_cleanup_value_free_to_mark.
468 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
469 * dwarf2expr.c (free_dwarf_expr_context): Don't call
470 value_free_to_mark.
471 (new_dwarf_expr_context): Don't call value_mark.
472 * dwarf2-frame.c (execute_stack_op): Call
473 make_cleanup_value_free_to_mark.
474 * defs.h (make_cleanup_value_free): Declare.
475
4762011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
477
478 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
479 prepare_execute_command.
480 * top.c (prepare_execute_command): Return cleanup.
481 (execute_command): Use cleanup from prepare_execute_command.
482 * top.h (prepare_execute_command): Change prototype to return
483 cleanup.
484 * defs.h (struct value): Add opaque declaration.
485 (make_cleanup_value_free_to_mark): Add prototype.
486 * utils.c (do_value_free_to_mark): New function.
487 (make_cleanup_value_free_to_mark): Likewise.
488
4892011-05-12 Tom Tromey <tromey@redhat.com>
490
491 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
492 cast left-hand-side to unsigned.
493
4942011-05-12 Tom Tromey <tromey@redhat.com>
495
496 PR gdb/12617:
497 * value.h (value_from_contents): Declare.
498 * value.c (value_from_contents): New function.
499 * dwarf2read.c (dwarf_stack_op_name): Add new values.
500 (dwarf2_get_die_type): New function.
501 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
502 (allocate_piece_closure): Acquire reference to values.
503 (read_pieced_value): Update for value-based expressions.
504 (write_pieced_value): Likewise.
505 (free_pieced_value_closure): Call value_free as needed.
506 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
507 Update for value-based expressions.
508 * dwarf2loc.h (dwarf2_get_die_type): Declare.
509 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
510 <get_base_type>: New field.
511 (struct dwarf_expr_piece) <v.value>: Change type.
512 <v.regno>: New field.
513 (struct dwarf_expr_context) <mark>: New field.
514 (dwarf_expr_piece, dwarf_expr_fetch): Update.
515 (dwarf_expr_pop, dwarf_expr_push): Remove.
516 (dwarf_expr_push_address): Declare.
517 * dwarf2expr.c (dwarf_arch_cookie): New global.
518 (struct dwarf_gdbarch_types): New.
519 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
520 functions.
521 (dwarf_expr_push): Change type of 'value' argument. Update. Now
522 static.
523 (dwarf_expr_push_address): New function.
524 (dwarf_expr_pop): Now static.
525 (dwarf_expr_fetch): Change return type.
526 (dwarf_require_integral): New function.
527 (dwarf_expr_fetch): Simplify.
528 (add_piece): Update.
529 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
530 functions.
531 (execute_stack_op) <sign_ext>: Remove.
532 Use values for DWARF stack.
533 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
534 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
535 New cases.
536 (_initialize_dwarf2expr): New function.
537 (add_piece): Update.
538 (new_dwarf_expr_context): Set new field.
539 (free_dwarf_expr_context): Call value_free_to_mark.
540 * dwarf2-frame.c (no_base_type): New function.
541 (execute_stack_op): Set get_base_type field. Update.
542
5432011-05-12 Tom Tromey <tromey@redhat.com>
544
545 * dwarf2read.c (read_common_block): Fix formatting.
546
5472011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
548
549 * breakpoint.c (disable_breakpoint): Disable all locations
550 associated with a tracepoint on target if a trace experiment is
551 running.
552 (disable_command): Disable a specific tracepoint location on target if
553 a trace experiment is running.
554 (do_enable_breakpoint): Enable all locations associated with a
555 tracepoint on target if a trace experiment is running.
556 (enable_command) Enable a specific tracepoint location on target if a
557 trace experiment is running.
558 * target.c (update_current_target): Add INHERIT and de_fault clauses for
559 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
560 to_disable_tracepoint.
561 * target.h: Add declaration of struct bp_location.
562 (struct target_ops): Add new functions
563 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
564 to_disable_tracepoint to target operations.
565 (target_supports_enable_disable_tracepoint): New macro.
566 (target_enable_tracepoint): New macro.
567 (target_disable_tracepoint): New macro.
568 * remote.c (struct remote_state): Add new field.
569 (remote_enable_disable_tracepoint_feature): New.
570 (remote_protocol_features): Add new entry.
571 (remote_supports_enable_disable_tracepoint): New.
572 (remote_enable_tracepoint): New.
573 (remote_disable_tracepoint): New.
574 (init_remote_ops): Add remote_enable_tracepoint,
575 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
576 to remote operations.
577 * tracepoint.c (start_tracing): Allow tracing to start without any
578 tracepoints enabled with just a warning if they can be re-enabled
579 later.
580 * NEWS: Add news item for the new behaviour of the enable and disable
581 GDB commands when applied to tracepoints.
582 Add news items for the new remote packets QTEnable and QTDisable.
583
5842011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
585
586 * config.in: Regenerate.
587 * configure: Regenerate.
588 * configure.ac <--with-system-readline> (for readline_echoing_p):
589 Remove the test.
590 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
591 (tui_old_rl_echoing_p): ... here.
592 (tui_setup_io): Rename extern declaration readline_echoing_p to
593 _rl_echoing_p. Adjust assignments for the both renames.
594
5952011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
596
597 * symtab.c (lookup_symtab): Run cleanup before returning.
598
5992011-05-11 Tom Tromey <tromey@redhat.com>
600
601 * dwarf2read.c (handle_data_member_location): New function.
602 (dwarf2_add_field): Use it.
603 (read_common_block): Likewise.
604
6052011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 Make addrs->SECTINDEX always defined.
608 * symfile.c (relative_addr_info_to_section_offsets): Check for
609 SECTINDEX -1, not for zero ADDR.
610 (addrs_section_compar): Remove checking for invalid SECTINDEX.
611 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
612 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
613 on its validity.
614
6152011-05-10 Doug Evans <dje@google.com>
616
617 * linux-thread-db.c: Whitespace cleanup.
618 (try_thread_db_load_1): Fix comment.
619
620 * linux-thread-db.c (set_libthread_db_search_path): New function.
621 (_initialize_thread_db): Add setter for libthread-db-search-path.
622
6232011-05-09 Doug Evans <dje@google.com>
624
625 * NEWS: Mention --with-iconv-bin.
626 * configure.ac: New option --with-iconv-bin.
627 * configure: Regenerate.
628 * config.in: Regenerate.
629 * defs.h (relocate_gdb_directory): Declare.
630 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
631 removed progname parameter, and exported. All callers updated.
632 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
633
634 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
635 adding missing call to restore_child_signals_mask.
636
6372011-05-09 Pedro Alves <pedro@codesourcery.com>
638
639 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
640 parameter.
641 * infrun.c (proceed, start_remote): Adjust.
642 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
643 and adjust to not handle it.
644 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
645 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
646 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
647 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
648 * windows-nat.c (do_initial_windows_stuff): Adjust.
649 * infcmd.c (attach_command): Adjust.
650 (notice_new_inferior): Adjust.
651
6522011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
653
654 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
655 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
656 * spu-tdep.c (op_selb): Use correct value.
657
6582011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
659
660 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
661 "parent" parameter to symbol_file_add_from_bfd call.
662
6632011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
664 Thiago Jung Bauermann <bauerman@br.ibm.com>
665
666 Implement support for PowerPC BookE masked watchpoints.
667 * NEWS: Mention masked watchpoint support. Create "Changed commands"
668 section.
669 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
670 method. Initialize to NULL in all existing breakpoint_ops instances.
671 (struct breakpoint) <hw_wp_mask>: New field.
672 * breakpoint.c (is_masked_watchpoint): Add prototype.
673 (update_watchpoint): Don't set b->val for masked watchpoints. Call
674 breakpoint's breakpoint_ops.works_in_software_mode if available.
675 (watchpoints_triggered): Handle the case of a hardware masked
676 watchpoint trigger.
677 (watchpoint_check): Likewise.
678 (works_in_software_mode_watchpoint): New function.
679 (insert_masked_watchpoint, remove_masked_watchpoint)
680 (resources_needed_masked_watchpoint)
681 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
682 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
683 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
684 functions.
685 (masked_watchpoint_breakpoint_ops): New structure.
686 (watch_command_1): Check for the existence of the `mask' parameter.
687 Set b->ops according to the type of hardware watchpoint being created.
688 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
689 (ppc_linux_remove_mask_watchpoint)
690 (ppc_linux_masked_watch_num_registers): New functions.
691 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
692 to_remove_mask_watchpoint and to_masked_watch_num_registers.
693 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
694 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
695 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
696 (target_masked_watch_num_registers): New functions.
697 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
698 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
699 methods.
700 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
701 (target_masked_watch_num_registers): Add prototypes.
702
7032011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
704
705 PR 12573
706 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
707 (producer_is_gcc_ge_4_0): New function.
708 (process_full_comp_unit): Set also symtab->locations_valid. Move the
709 symtab->language code.
710 (var_decode_location): Set cu->has_loclist.
711 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
712 skip. Intialize force_skip from locations_valid. Move the prologue
713 skipping code into two passes.
714 * symtab.h (struct symtab): Make the primary field a bitfield. New
715 field locations_valid.
716
7172011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
718
719 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
720 (classify_inner_name): Call cp_lookup_nested_type with
721 yylval.tsym.type.
722 * cp-namespace.c (cp_lookup_nested_type): New variable
723 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
724 type_name_no_tag_or_error with saved_parent_type.
725 * dwarf2read.c (load_partial_dies): Read in any children of
726 DW_TAG_typedef with complaint in such case.
727 * gdbtypes.c (type_name_no_tag_or_error): New function.
728 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
729 * valops.c (destructor_name_p): New comment for parameter type. Remove
730 type const. Make dname and cp const. Call type_name_no_tag_or_error.
731 * value.h (destructor_name_p): Remove type const.
732
7332011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
734
735 * symtab.c (compare_symbol_name): New function.
736 (completion_list_add_name, expand_partial_symbol_name): Call it,
737 remove the variable ncmp.
738 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
739 gdb_assert it.
740
7412011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
742
743 Demote to sw watchpoint only in update_watchpoint.
744 * breakpoint.c (update_watchpoint): Change between software and
745 hardware watchpoint for all kinds of watchpoints, not just
746 read/write ones. Determine b->exact value here instead of
747 in watch_command_1. Error out if there are not enough resources
748 for a read or access hardware watchpoint.
749 (watch_command_1): Remove logic of checking whether there are
750 enough resources available, since update_watchpoint will do that
751 work now. Don't set b->exact here. Catch exceptions thrown by
752 update_watchpoint and delete the watchpoint.
753 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
754 Use target_exact_watchpoints instead.
755 (delete_breakpoint): Notify observers only if deleted watchpoint
756 has a breakpoint number assigned to it.
757
7582011-05-05 Janis Johnson <janisjo@codesourcery.com>
759
760 * MAINTAINERS: Add myself as a write-after-approval maintainer.
761
7622011-05-05 Jerome Guitton <guitton@adacore.com>
763
764 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
765 New functions.
766 (i386_stack_tramp_frame_unwind): New static global.
767 (i386_match_pattern): New function, extracted from i386_match_insn.
768 (i386_match_insn): Use i386_match_pattern.
769 (i386_match_insn_block): New function.
770 (i386_tramp_chain_in_reg_insns)
771 (i386_tramp_chain_on_stack_insns): New static variables.
772 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
773 of unwinders.
774
7752011-05-04 Joseph Myers <joseph@codesourcery.com>
776
777 * configure.host (xscale*): Don't handle target.
778 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
779 handle targets.
780
7812011-05-04 Yao Qi <yao@codesourcery.com>
782
783 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
784
7852011-05-03 Joel Brobecker <brobecker@adacore.com>
786
787 Revert:
788 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
789 | * elfread.c (elf_symtab_read): Stop memory leak.
790
7912011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
792
793 * nto-tdep.c (nto_target): Replace deprecated call to
794 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
795
7962011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 Fix false GCC warning.
799 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
800
8012011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
802
803 * breakpoint.c (update_watchpoint): Move code to change
804 the enable state of breakpoint from here ...
805 (do_enable_breakpoint): ... to here.
806
8072011-04-26 Andrew Gontarek <andrewg@cray.com>
808
809 * valprint.c (val_print_array_elements): Fixed poor performance
810 of printing very large arrays with repeat_count_threshold set
811 to unlimited. New comment.
812
8132011-04-29 Tom Tromey <tromey@redhat.com>
814
815 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
816 (mi_parse): Likewise.
817 * breakpoint.c (break_range_command): Use sizeof char*, not
818 char**.
819 (create_breakpoint): Likewise.
820 (parse_breakpoint_sals): Likewise.
821
8222011-04-29 Pedro Alves <pedro@codesourcery.com>
823
824 * linux-nat.c (linux_child_remove_fork_catchpoint)
825 (linux_child_remove_vfork_catchpoint)
826 (linux_child_remove_exec_catchpoint): New functions.
827 (linux_target_install_ops): Install them.
828
8292011-04-29 Phil Muldoon <pmuldoon@redhat.com>
830
831 PR mi/12531
832
833 * varobj.c (install_default_visualizer): Do not install a
834 visualizer if the varobj is CPLUS_FAKE_CHILD.
835 (construct_visualizer): Likewise.
836
8372011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
838
839 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
840 case insensitive comparison.
841
8422011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
843
844 * infrun.c (proceed): Revert previous change.
845 (resume): Instead, handle the case of signal delivery while stepping
846 off a breakpoint location here, and only if software single-stepping
847 is used. Handle nested signals.
848
8492011-04-28 Yao Qi <yao@codesourcery.com>
850
851 * arm-tdep.c (copy_unmodified): Rename to ...
852 (arm_copy_unmodified): .. this. New.
853 (copy_preload): Move common part to ...
854 (install_preload): .. this. New.
855 (arm_copy_preload): New.
856 (copy_preload_reg): Move common part to ...
857 (install_preload_reg): ... this. New.
858 (arm_copy_preload_reg): New.
859 (copy_b_bl_blx): Move common part to ...
860 (install_b_bl_blx): .. this. New.
861 (arm_copy_b_bl_blx): New.
862 (copy_bx_blx_reg): Move common part to ...
863 (install_bx_blx_reg): ... this. New.
864 (arm_copy_bx_blx_reg): New.
865 (copy_alu_reg): Move common part to ...
866 (install_alu_reg): ... this. New.
867 (arm_copy_alu_reg): New.
868 (copy_alu_shifted_reg): Move common part to ...
869 (install_alu_shifted_reg): ... this. New.
870 (copy_ldr_str_ldrb_strb): Move common part to ...
871 (install_ldr_str_ldrb_strb): ... this. New.
872 (arm_copy_ldr_str_ldrb_strb): New.
873 (copy_copro_load_store): Move some common part to ...
874 (install_copy_copro_load_store): ... this. New.
875 (arm_copy_copro_load_store): New.
876 (copy_svc): Delete.
877 (arm_copy_svc): Renamed from copy_svc.
878 (copy_undef): Delete.
879 (arm_copy_undef): Renamed from copy_undef.
880 (decode_ext_reg_ld_st): Delete.
881 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
882 (decode_svc_copro): Delete.
883 (arm_decode_svc_copro): Renamed from decode_svc_copro.
884 (copy_copro_load_store, copy_alu_imm): update callers.
885 (copy_extra_ld_st, copy_block_xfer): Likewise.
886 (decode_misc_memhint_neon, decode_unconditional): Likewise.
887 (decode_miscellaneous, decode_dp_misc): Likewise.
888 (decode_ld_st_word_ubyte, decode_media): Likewise.
889 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
890 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
891 (decode_unconditional, decode_miscellaneous): Likewise.
892 (decode_media, decode_b_bl_ldmstm): Likewise.
893 (arm_process_displaced_insn): Likewise..
894 (decode_misc_memhint_neon): Delete.
895 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
896 (decode_miscellaneous): Delete.
897 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
898 (decode_dp_misc): Delete.
899 (arm_decode_dp_misc): Renamed from decode_dp_misc.
900 (decode_ld_st_word_ubyte): Delete.
901 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
902 (decode_media): Delete.
903 (arm_decode_media): Renamed from decode_media.
904 (decode_b_bl_ldmstm): Delete.
905 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
906 (decode_ext_reg_ld_st): Delete.
907 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
908 (decode_unconditional): Delete.
909 (arm_decode_unconditional): Renamed from decode_unconditional.
910
9112011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
912
913 Case insensitive lookups implementation.
914 * dwarf2read.c: Include ctype.h.
915 (struct mapped_index): New field version.
916 (mapped_index_string_hash): New parameter index_version. New comment
917 for it. Call tolower appropriately.
918 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
919 Choose the right index version for mapped_index_string_hash.
920 (dwarf2_read_index): Support also the index version 5. Initialize the
921 new struct mapped_index field version.
922 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
923 (find_slot): Explain the version needs. Pass INT_MAX for the new
924 parameter.
925 (write_psymtabs_to_index): Produce version 5.
926 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
927 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
928 * psymtab.c (lookup_partial_symbol): Find the
929 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
930 entries.
931 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
932 NAME lowercasing.
933 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
934 (completion_list_add_name): New variable ncmp, initialize it, use it.
935 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
936 * utils.c (strcmp_iw): Support case_sensitive_off.
937 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
938 New function comment part. New variables saved_string1,
939 saved_string2 and case_pass. Add a proper second pass.
940
9412011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 Replace re_comp/re_exec by regcomp/regexec.
944 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
945 (search_symbols_name_matches): Use them, use regexec.
946 (search_symbols): New variable retval_chain, adjust the use of
947 old_chain against it. Replace re_comp by regcomp. Use the new struct
948 search_symbols_data fields, use regexec instead of re_exec.
949
9502011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
951
952 Format the code for the next patch.
953 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
954 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
955 New variables c1 and c2.
956
9572011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
958
959 * infrun.c (proceed): Do not single-step into signal delivery
960 when stepping off a breakpoint location.
961 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
962 (insert_step_resume_breakpoint_at_caller): Likewise.
963 (insert_step_resume_breakpoint_at_sal): Likewise.
964 (insert_longjmp_resume_breakpoint): Likewise.
965
9662011-04-27 Yao Qi <yao@codesourcery.com>
967
968 * common/linux-ptrace.h: Remove include <sys/wait.h>.
969
9702011-04-27 Joel Brobecker <brobecker@adacore.com>
971
972 * procfs.c (procfs_pass_signals): Fix advance declaration.
973
9742011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
975
976 * target.h (struct target_ops): Remove to_notice_signals;
977 add to_pass_signals.
978 (target_notice_signals): Remove.
979 (target_pass_signals): Add prototype.
980 * target.c (update_current_target): Remove to_notice_signals;
981 mention to_pass_signals.
982 (target_pass_signals): New function.
983 (debug_to_notice_signals): Remove.
984 (setup_target_debug): Do not install debug_to_notice_signals.
985
986 * infrun.c (signal_pass): New global.
987 (resume): Call target_pass_signals.
988 (handle_inferior_event): Report all signals while stepping over
989 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
990 are re-inserted when stepping over a signal handler.
991 (signal_cache_update): New function.
992 (signal_stop_update): Call it.
993 (signal_print_update): Likewise.
994 (signal_pass_update): Likewise.
995 (handle_command): Call signal_cache_update and target_pass_signals
996 instead of target_notice_signals.
997 (_initialize_infrun): Initialize signal_pass.
998
999 * linux-nat.c (pass_mask): New global.
1000 (linux_nat_pass_signals): New function.
1001 (linux_nat_create_inferior): Report all signals initially.
1002 (linux_nat_attach): Likewise.
1003 (linux_nat_resume): Use pass_mask to decide whether to directly
1004 handle an inferior signal.
1005 (linux_nat_wait_1): Likewise.
1006 (linux_nat_add_target): Install to_pass_signals callback.
1007
1008 * nto-procfs.c (notice_signals): Remove.
1009 (procfs_resume): Do not call notice_signals.
1010 (procfs_notice_signals): Remove.
1011 (procfs_pass_signals): New function.
1012 (init_procfs_ops): Install to_pass_signals callback instead of
1013 to_notice_signals callback.
1014 (_initialize_procfs): Report all signals initially.
1015
1016 * procfs.c (procfs_notice_signals): Remove.
1017 (procfs_pass_signals): New function.
1018 (procfs_target): Install to_pass_signals callback instead of
1019 to_notice_signals callback.
1020 (register_gdb_signals): Remove.
1021 (procfs_debug_inferior): Report all signals initially.
1022 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1023
1024 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1025 parameters; use them instead of calling signal_..._state routines.
1026 (remote_notice_signals): Remove.
1027 (remote_start_remote): Report all signals initially.
1028 (remote_resume): Do not call remote_pass_signals.
1029 (_initialize_remote): Install to_pass_signals callback instead of
1030 to_notice_signals callback.
1031
10322011-04-27 Pedro Alves <pedro@codesourcery.com>
1033
1034 * breakpoint.c (user_settable_breakpoint): Delete.
1035 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1036 (delete_command): Check user_breakpoint_p instead of looking at
1037 the breakpoint's type.
1038 (disable_command): Ditto.
1039 (enable_command): Ditto.
1040 (delete_trace_command): Use user_breakpoint_p instead of looking
1041 at the breakpoint number directly. When checking if there are
1042 user visible tracepoints, in order to know whether to ask the user
1043 for confirmation, check whether the breakpoint is actually a
1044 tracepoint.
1045
10462011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1047
1048 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1049 compilation.
1050
10512011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1052
1053 MI breakpoint notifications.
1054
1055 * annotate.c (breakpoint_changed): Adjust parameter type.
1056 * breakpoint.c (set_breakpoint_condition): Adjust to change
1057 in breakpoint_modified type.
1058 (breakpoint_set_commands): Likewise.
1059 (do_map_commands_command): Likewise.
1060 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1061 changed after bumping hit count.
1062 (bpstat_stop_status): Likewise.
1063 (print_one_breakpoint_location): Don't wrap in tuple here.
1064 (print_one_breakpoint): Always print individual locations.
1065 For locations, use unnamed tuple.
1066 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1067 has changed.
1068 (create_catchpoint, create_syscall_event_catchpoint): Call
1069 breakpoint_created obsever.
1070 (mention): Don't call breakpoint_created observer.
1071 (create_breakpoint_sal): Call breakpoint_created observer.
1072 (create_breakpoint, watch_command_1): Likewise.
1073 (create_ada_exception_breakpoint): Likewise.
1074 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1075 (locations_are_equal): New.
1076 (update_breakpoint_locations): If locations were changed, notify.
1077 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1078 Call breakpoint_modified observer.
1079
1080 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1081 (mi_cmd_break_insert): Don't set observers for modify and delete.
1082 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1083 (mi_breakpoint_created, mi_breakpoint_deleted)
1084 (mi_breakpoint_modified): New.
1085 (mi_interpreter_init): Hook the above.
1086 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1087 while -break-* commands are executing.
1088 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1089 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1090 (mi_redirect): New.
1091 (mi_ui_out_impl): Hook in mi_redirect.
1092 (mi_field_skip): True to the name, skip the field, don't output
1093 a field with an empty value.
1094
1095 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1096 (gdbpy_breakpoint_deleted): Adjust.
1097 * tui/tui-hooks.c (tui_event_create_breakpoint)
1098 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1099
11002011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1101
1102 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1103 (procfs_remove_hw_watchpoint): Likewise.
1104
11052011-04-26 Michael Walle <michael@walle.cc>
1106
1107 * remote.c (remote_start_remote): Ack packet after sending the
1108 interrupt sequence.
1109
11102011-04-26 Yao Qi <yao@codesourcery.com>
1111
1112 * linux-nat.c: Move common macros to ...
1113 Include linux-ptrace.h.
1114 * common/linux-ptrace.h: ... here. New.
1115
11162011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1119 !objfile_has_partial_symbols. New comment.
1120 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1121 SYM_READ_PSYMBOLS is not present. Extend the comment.
1122 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1123
11242011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * defs.h (ENUM_BITFIELD): Remove.
1127
11282011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1129 Eli Zaretskii <eliz@gnu.org>
1130
1131 * NEWS: Document the new gdbserver --once option.
1132
11332011-04-21 Jie Zhang <jzhang918@gmail.com>
1134
1135 * MAINTAINERS: Update my email address.
1136
11372011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1138
1139 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1140 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1141 function call if __STDC_ISO_10646__ macro is defined.
1142 (intermediate_encoding): New prototype.
1143 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1144 to generate compile time error for unsupported gdb_wchar_t size.
1145 (ENDIAN_SUFFIX): New macro.
1146 (intermediate_encoding): New function.
1147
11482011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1149
1150 * ada-lang.c (struct add_partial_datum): Update the comment for
1151 expand_partial_symbol_name.
1152 (ada_add_partial_symbol_completions): Rename to ...
1153 (ada_expand_partial_symbol_name): ... here, change return type, update
1154 function comment, call symbol_completion_match instead of
1155 symbol_completion_add.
1156 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1157 and ada_expand_partial_symbol_name.
1158 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1159 FILE_MATCHER.
1160 (dw2_map_symbol_names): Remove.
1161 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1162 * psymtab.c (map_symbol_names_psymtab): Remove.
1163 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1164 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1165 order.
1166 (psym_functions): Unlist map_symbol_names_psymtab.
1167 (map_partial_symbol_names): Rename to ...
1168 (expand_partial_symbol_names): ... here, change the FUN type, call
1169 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1170 * psymtab.h (map_partial_symbol_names): Rename to ...
1171 (expand_partial_symbol_names): ... here, change the FUN type.
1172 * symfile.h (struct quick_symbol_functions): Update the description of
1173 expand_symtabs_matching. Remove map_symbol_names.
1174 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1175 (struct add_name_data): Update the comment for
1176 expand_partial_symbol_name.
1177 (add_partial_symbol_name): Rename to ...
1178 (expand_partial_symbol_name): ... here. Replace
1179 completion_list_add_name call by strncmp.
1180 (default_make_symbol_completion_list_break_on): Use now
1181 expand_partial_symbol_names and expand_partial_symbol_name.
1182 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1183
11842011-04-20 Tom Tromey <tromey@redhat.com>
1185
1186 * dwarf2read.c (save_gdb_index_command): Replace format
1187 documentation with a pointer to the manual.
1188
11892011-04-20 Pedro Alves <pedro@codesourcery.com>
1190
1191 * regcache.c: Include remote.h.
1192 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1193 (regcache_dump): Handle regcache_dump_remote.
1194 (maintenance_print_remote_registers): New function.
1195 (_initialize_regcache): Install "maint print remote-registers"
1196 command.
1197 * remote.c (map_regcache_remote_table): New function, factored out
1198 from ...
1199 (init_remote_state): ... here.
1200 (remote_register_number_and_offset): New.
1201 * remote.h (remote_register_number_and_offset): Declare.
1202
12032011-04-20 Pedro Alves <pedro@codesourcery.com>
1204
1205 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1206 null_ptid, assume and allow a NULL address space, instead of
1207 asking the target for the ptid's address space.
1208 * infrun.c (ptid_is_pid): Remove assertion.
1209
12102011-04-19 Tom Tromey <tromey@redhat.com>
1211
1212 * windows-tdep.c (windows_xfer_shared_library):
1213 * windows-nat.c (get_module_name, windows_make_so):
1214 * v850-tdep.c (v850_handle_pushm):
1215 * utils.c (null_cleanup, gdb_realpath):
1216 * ui-out.c (get_next_header):
1217 * tracepoint.c (clear_traceframe_info):
1218 * symtab.c (lookup_symtab):
1219 * serial.h (struct serial_ops):
1220 * mipsread.c (read_alphacoff_dynamic_symtab):
1221 * infcmd.c (print_return_value):
1222 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1223 * f-exp.y (parse_number):
1224 * exceptions.c (catch_exceptions):
1225 * dummy-frame.c (dummy_frame_this_id):
1226 * defs.h (struct cleanup):
1227 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1228 * arm-tdep.c (arm_push_dummy_call):
1229 * amd64-tdep.h (amd64_collect_xsave):
1230 * amd64-tdep.c (amd64_collect_xsave):
1231 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1232 * README (typing): Remove duplicate words.
1233 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1234 * infrun.c (siginfo_value_read): Fix typo.
1235 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1236 * top.c (source_line_number): Add comma.
1237
12382011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1239
1240 * thread.c (any_live_thread_of_process): Prioritize threads
1241 that are not executing.
1242 * gdbthread.h (any_live_thread_of_process): Update comment
1243 as per above change.
1244
12452011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1246
1247 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1248 (scan_xcoff_symtab): Likewise.
1249
12502011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1251
1252 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1253 inside if clause.
1254
12552011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1256 Pedro Alves <pedro@codesourcery.com>
1257
1258 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1259 variables to simplify code and avoid == operator at end of
1260 line as this is against GNU coding standards.
1261
12622011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1263
1264 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1265 lm_name to name_lm to avoid conflict with lm_name function.
1266
12672011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1268
1269 ARI fixes: Use only lowercase function name for static functions.
1270 * nto-tdep.c (LM_ADDR): Rename to...
1271 (lm_addr): New function name.
1272 (nto_relocate_section_addresses): Adapt to change above.
1273 * solib-sunos.c (LM_ADDR): Rename to...
1274 (lm_addr): New function name.
1275 (LM_NEXT): Rename to...
1276 (lm_next): New function name.
1277 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1278 function name changes above.
1279 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1280 (lm_addr_from_link_map): New function name.
1281 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1282 (has_lm_dynamic_from_link_map): New function name.
1283 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1284 (lm_dynamic_from_link_map): New function name.
1285 (LM_ADDR_CHECK): Rename to...
1286 (lm_addr_check): New function name.
1287 (LM_NEXT): Rename to...
1288 (lm_next): New function name.
1289 (LM_PREV): Rename to...
1290 (lm_prev): New function name.
1291 (LM_NAME): Rename to...
1292 (lm_name): New function name.
1293 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1294 (ignore_first_link_map_entry): New function name.
1295 (svr4_keep_data_in_core): Adapt to function name changes above.
1296 (svr4_current_sos): Likewise.
1297 (enable_break): Likewise.
1298 (svr4_relocate_section_addresses): Likewise.
1299
13002011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1301
1302 ARI cleanup.
1303 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1304 sprintf. Simplify code and avoid loosing memory.
1305 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1306 (call0_frame_cache): Remove && operator from end of line.
1307
13082011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1309
1310 Fix libraries displacement if they change whether they were prelinked.
1311 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1312 does not match. Comment why.
1313
13142011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1315
1316 * corelow.c: Include wrapper.h.
1317 (core_open): Call now gdb_target_find_new_threads.
1318 * wrapper.c: Include target.h.
1319 (gdb_target_find_new_threads): New.
1320 * wrapper.h (gdb_target_find_new_threads): New declaration.
1321
13222011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1323
1324 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1325 even if !TARGET_HAS_EXECUTION.
1326
13272011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1330 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1331 bfd_get_synthetic_symtab.
1332 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1333 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1334 parameter parent, remove the call to add_separate_debug_objfile.
1335 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1336 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1337 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1338 parent, new comment for it, call add_separate_debug_objfile for it.
1339 (symbol_file_add_separate): Pass objfile as the parameter parent,
1340 remove the call to add_separate_debug_objfile.
1341 (symbol_file_add_from_bfd): New parameter parent, pass it.
1342 (symbol_file_add): Pass NULL to the new parameter parent.
1343 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1344
13452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1348 BSF_SYNTHETIC.
1349
13502011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1351
1352 Fix Python access to inlined frames.
1353 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1354 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1355
13562011-04-15 Tom Tromey <tromey@redhat.com>
1357
1358 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1359
13602011-04-15 Gary Benson <gbenson@redhat.com>
1361
1362 * MAINTAINERS: Add myself to write-after-approval section.
1363
13642011-04-14 Mike Frysinger <vapier@gentoo.org>
1365
1366 * remote-sim.c (sim_command_completer): New function.
1367 (_initialize_remote_sim): Set completer to sim_command_completer.
1368
13692011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1370
1371 * breakpoint.c (print_exception_catchpoint): Rename to ...
1372 (print_it_exception_catchpoint): ... this.
1373 (gnu_v3_exception_catchpoint_ops): Update with new name
1374 for print_it_exception_catchpoint.
1375
13762011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1377
1378 * MAINTAINERS: Add myself for write after approval privileges.
1379
13802011-04-13 Marek Polacek <mpolacek@redhat.com>
1381
1382 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1383
13842011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1385
1386 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1387
13882011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1389
1390 * breakpoint.c (save_breakpoints): Verify whether
1391 breakpoint_ops.print_recreate is defined before calling it.
1392
13932011-04-11 Gary Benson <gbenson@redhat.com>
1394
1395 Fix failure with --enable-maintainer-mode.
1396 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1397
13982011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1399
1400 Code cleanup.
1401 * symtab.c (search_symbols): Reorder the KIND description in the
1402 function comment. Remove the unused 4th element of types, types2,
1403 types3 and types4. New gdb_assert on KIND.
1404 (symtab_symbol_info): Remove the unused 4th element of classnames.
1405 New gdb_assert on KIND.
1406 * symtab.h (enum search_domain): New warning in the enum comment.
1407 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1408 TYPES_DOMAIN.
1409
14102011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Fix crash of gdb save-index on a STABS file.
1413 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1414 PSYMTABS_ADDRMAP.
1415
14162011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1417
1418 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1419 * dwarf2read.c: Include ctype.h.
1420 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1421 functions.
1422 (dwarf2_add_field): Fix new_field->accessibility by calling
1423 dwarf2_default_access_attribute. Restructure setting accessibility
1424 vs. virtuality.
1425 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1426 is_private and is_protected by calling
1427 dwarf2_default_access_attribute.
1428
14292011-04-08 Kevin Buettner <kevinb@redhat.com>
1430
1431 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1432 to the initialization.
1433
14342011-04-08 Steve Ellcey <sje@cup.hp.com>
1435
1436 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1437 initalization.
1438
14392011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1440
1441 Remove support for old Cygwin 1.5 versions.
1442 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1443 function on old Cygwin version.
1444 * windows-nat.c: Remove cygwin version check and always define
1445 __USEWIDE for Cygwin compilation.
1446
14472011-04-07 Yao Qi <yao@codesourcery.com>
1448
1449 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1450 and TO.
1451 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1452 (arm_copy_svc): Remove parameters INSN and TO.
1453 (decode_svc_copro): Update caller.
1454 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1455 from function pointer `copy_svc_os'.
1456
14572011-04-07 Yao Qi <yao@codesourcery.com>
1458
1459 * arm-tdep.c (cleanup_branch): Set a correct return address in
1460 LR for ARM and Thumb.
1461
14622011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Code cleanup.
1465 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1466 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1467 in the function comment, a new note on values compatibility.
1468 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1469 * symtab.h (SYMBOL_HASH_NEXT): New.
1470
14712011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1472
1473 * ppc-linux-nat.c (check_condition): Add len output parameter.
1474 Set it based on the memory region referenced in the condition
1475 expression. Update all callers.
1476
14772011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Fix crash regression on systems featuring .gdb_index.
1480 * objfiles.c (free_objfile): Move the
1481 forget_cached_source_info_for_objfile call earlier. Comment it.
1482 Extend the comment for objfile_free_data.
1483
14842011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1485
1486 Fix regression of displaying the debug format.
1487 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1488 subfile.
1489
14902011-04-04 Tom Tromey <tromey@redhat.com>
1491
1492 * cli/cli-interp.c (struct captured_execute_command_args):
1493 Remove.
1494 (do_captured_execute_command): Remove.
1495 (safe_execute_command): Use TRY_CATCH.
1496 * cli/cli-script.c (struct wrapped_read_command_file_args):
1497 Remove.
1498 (wrapped_read_command_file): Remove.
1499 (script_from_file): Use TRY_CATCH.
1500 * exceptions.c (catch_exception): Remove.
1501 * exceptions.h (catch_exception): Remove.
1502 (deprecated_throw_reason): Update comment.
1503 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1504 argument to 'context'.
1505 (mi_execute_command): Use TRY_CATCH.
1506 * remote.c (struct start_remote_args): Remove.
1507 (remote_start_remote): Update; change arguments.
1508 (remote_open_1): Use TRY_CATCH.
1509
15102011-04-04 Tom Tromey <tromey@redhat.com>
1511
1512 * tracepoint.c (scope_info): Update.
1513 * symtab.c (decode_line_spec): Update.
1514 * python/python.c (gdbpy_decode_line): Update.
1515 * linespec.h (decode_line_1): Update.
1516 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1517 (decode_compound, find_method, symtab_from_filename)
1518 (decode_variable): Likewise.
1519 * cli/cli-cmds.c (edit_command): Update.
1520 (list_command): Update.
1521 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1522 argument.
1523 (create_breakpoint): Update.
1524 (until_break_command): Update.
1525 (addr_string_to_sals): Update.
1526 (decode_line_spec_1): Update.
1527
15282011-04-04 Tom Tromey <tromey@redhat.com>
1529
1530 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1531 (do_captured_parse_breakpoint): Remove.
1532 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1533 Use TRY_CATCH directly.
1534
15352011-04-04 Tom Tromey <tromey@redhat.com>
1536
1537 * symtab.h (free_symtab): Remove.
1538 (forget_cached_source_info_for_objfile): Declare.
1539 * symmisc.c (free_symtab): Remove.
1540 * source.c (forget_cached_source_info_for_objfile): New function.
1541 (forget_cached_source_info): Use it.
1542 * objfiles.c (free_objfile): Simplify check before calling
1543 clear_current_source_symtab_and_line. Call
1544 forget_cached_source_info_for_objfile.
1545
15462011-04-04 Tom Tromey <tromey@redhat.com>
1547
1548 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1549 (new_symtab): Don't set `free_code' on symtab.
1550 (new_linetable): Properly handle size==0.
1551 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1552 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1553 free_func.
1554 * jv-lang.c (struct jv_per_objfile_data): New.
1555 (jv_per_objfile_free): Free the data.
1556 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1557 (get_java_class_symtab): Set the `dict' field on the
1558 jv_per_objfile_data.
1559 (free_class_block): Remove.
1560 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1561 the symtab.
1562
15632011-04-04 Tom Tromey <tromey@redhat.com>
1564
1565 * symfile.c (reread_symbols): Update.
1566 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1567 field.
1568 * objfiles.c (allocate_objfile): Update.
1569 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1570 declare.
1571 * cp-namespace.c (lookup_symbol_file): Don't call
1572 lookup_possible_namespace_symbol.
1573 (initialize_namespace_symtab, get_possible_namespace_block)
1574 (free_namespace_block, cp_check_possible_namespace_symbols)
1575 (check_possible_namespace_symbols_loop)
1576 (check_one_possible_namespace_symbol)
1577 (lookup_possible_namespace_symbol): Remove.
1578 (maintenance_cplus_namespace): Replace with notice.
1579 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1580
15812011-04-04 Tom Tromey <tromey@redhat.com>
1582
1583 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1584 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1585 * symmisc.c (free_symtab): Don't free debugformat.
1586 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1587 (record_debugformat, record_producer): Document.
1588 * buildsym.c (end_symtab): Don't save debugformat and producer
1589 names on obstack.
1590 (end_symtab): Don't free debugformat and producer fields.
1591 (record_debugformat): Don't call xstrdup.
1592 (record_producer): Likewise.
1593
15942011-04-04 Tom Tromey <tromey@redhat.com>
1595
1596 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1597 (source_line_charpos, source_charpos_line): Remove.
1598
15992011-04-04 Tom Tromey <tromey@redhat.com>
1600
1601 * symtab.h (domain_enum): Split in two...
1602 (enum search_domain): New.
1603 (search_symbols): Update.
1604 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1605 redundant declarations.
1606 (search_symbols): Change 'kind' argument to search_domain.
1607 Update.
1608 (print_symbol_info): Likewise.
1609 (symtab_symbol_info): Likewise.
1610 * symfile.h (struct quick_symbol_functions)
1611 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1612 <expand_symtabs_matching>: Likewise.
1613 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1614 (expand_symtabs_matching_via_partial): Update.
1615 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1616 (dw2_expand_symtabs_for_function): Update.
1617 * block.h: Moved anonymous enum...
1618 * defs.h (enum block_enum): ... here. Now named.
1619
16202011-04-03 Joel Brobecker <brobecker@adacore.com>
1621
1622 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1623 * version.in: Bump version to 7.3.50.20110403-cvs.
1624
16252011-04-03 Joel Brobecker <brobecker@adacore.com>
1626
1627 * NEWS: Create a new section for the next release branch.
1628 Rename the section of the current branch, now that it has
1629 been cut.
1630
16312011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1632
1633 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1634 for "fpscr" in target description.
1635
16362011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1637
1638 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1639 initialize it. Delay HASH initialization. Strip the part after open
1640 parenthesis for languages with qualifiers. Call do_cleanups.
1641
16422011-04-01 Tom Tromey <tromey@redhat.com>
1643
1644 * utils.c (report_command_stats): Don't print `-' for negative
1645 number.
1646
16472011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1648
1649 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1650 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1651 typedefs.
1652
16532011-04-01 Joel Brobecker <brobecker@adacore.com>
1654
1655 * breakpoint.h (bpdisp_text): Add declaration.
1656 * breakpoint.c (bpdisp_text): Make non-static.
1657 * ada-lang.c: #include "mi/mi-common.h".
1658 (print_it_exception): Rewrite to improve GDB/MI output.
1659
16602011-04-01 Pedro Alves <pedro@codesourcery.com>
1661
1662 * arm-tdep.h (struct address_space): Add forward declaration.
1663
16642011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1665
1666 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1667 * arm-tdep.c (arm_override_mode): New global.
1668 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1669 execution mode heuristics.
1670 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1671 second single-step breakpoint if needed, using
1672 arm_insert_single_step_breakpoint.
1673 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1674 ARM execution mode, do not call thumb_get_next_pc_raw.
1675 (arm_get_next_pc): Encode execution mode in return value. Call
1676 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1677 (arm_insert_single_step_breakpoint): New function.
1678 (arm_software_single_step): Call it.
1679 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1680 argument to return execution mode of sigreturn target.
1681 (arm_linux_syscall_next_pc): Use it.
1682 (arm_linux_copy_svc): Update call.
1683 (arm_linux_software_single_step): Call
1684 arm_insert_single_step_breakpoint.
1685
16862011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1689 the comment.
1690
16912011-03-31 Tom Tromey <tromey@redhat.com>
1692
1693 * varobj.c (update_dynamic_varobj_children): Properly handle
1694 errors from iterator.
1695
16962011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1699 struct linkage name twice.
1700
17012011-03-31 Tom Tromey <tromey@redhat.com>
1702
1703 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1704 missing ">" to message.
1705
17062011-03-31 Tom Tromey <tromey@redhat.com>
1707
1708 * varobj.c (instantiate_pretty_printer): Remove duplicate
1709 'return'.
1710
17112011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1712
1713 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1714 if neither saved value nor register available (e.g. signal frame).
1715
17162011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1717
1718 * macroexp.c (expand): Avoid uninitialized variable
1719 compiler warning.
1720
17212011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1722
1723 * breakpoint.c (break_range_command): Fix typo in comment.
1724
17252011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1726 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1727
1728 Implement support for PowerPC BookE ranged breakpoints.
1729 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1730 * breakpoint.h (struct bp_target_info) <length>: New member
1731 variable.
1732 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1733 instead of struct breakpoint as argument, and also add ASPACE
1734 and BP_ADDR arguments. Update all callers.
1735 (struct breakpoint_ops) <print_one_detail>: New method.
1736 (struct breakpoint) <addr_string_range_end>: New member variable.
1737 * breakpoint.c (breakpoint_location_address_match): Add function
1738 prototype.
1739 (insert_bp_location): Set bl->target_info.length.
1740 (breakpoint_here_p): Call breakpoint_location_address_match.
1741 (moribund_breakpoint_here_p): Likewise.
1742 (regular_breakpoint_inserted_here_p): Likewise.
1743 (breakpoint_thread_match): Likewise.
1744 (bpstat_stop_status): Likewise.
1745 (bpstat_check_location): Move call to
1746 breakpoint_ops.breakpoint_hit to the top.
1747 (print_one_breakpoint_location): Call
1748 breakpoint_ops.print_one_detail if available.
1749 (breakpoint_address_match_range): New function.
1750 (breakpoint_location_address_match): Likewise.
1751 (breakpoint_locations_match): Compare the length field of the
1752 locations too.
1753 (hw_breakpoint_used_count): Count resources used by all locations
1754 in a breakpoint, and use breakpoint_ops.resources_needed if
1755 available.
1756 (breakpoint_hit_ranged_breakpoint): New function.
1757 (resources_needed_ranged_breakpoint): Likewise.
1758 (print_it_ranged_breakpoint): Likewise.
1759 (print_one_ranged_breakpoint): Likewise.
1760 (print_one_detail_ranged_breakpoint): Likewise.
1761 (print_mention_ranged_breakpoint): Likewise.
1762 (print_recreate_ranged_breakpoint): Likewise.
1763 (ranged_breakpoint_ops): New structure.
1764 (find_breakpoint_range_end): New function.
1765 (break_range_command): Likewise.
1766 (delete_breakpoint): Free addr_string_range_end.
1767 (update_breakpoint_locations): Add SALS_END argument. Update
1768 all callers. Calculate breakpoint length if a non-zero SALS_END
1769 is given. Call breakpoint_locations_match instead of
1770 breakpoint_address_match.
1771 (reset_breakpoint): Find SaL of the end of the range if B is a
1772 ranged breakpoint.
1773 (_initialize_breakpoint): Register break-range command.
1774 * defs.h (print_core_address): Add function prototype.
1775 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1776 function.
1777 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1778 (ppc_linux_remove_hw_breakpoint): Likewise.
1779 (_initialize_ppc_linux_nat): Initialize
1780 to_ranged_break_num_registers.
1781 * target.c (update_current_target): Add comment about
1782 to_ranged_break_num_registers.
1783 (target_ranged_break_num_registers): New function.
1784 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1785 New method.
1786 (target_ranged_break_num_registers): Add function prototype.
1787 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1788 * utils.c (print_core_address): ... here.
1789
17902011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1791
1792 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1793 variable compiler warning.
1794
17952011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1796
1797 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1798 code from here ...
1799 (re_set_breakpoint): ... to here ...
1800 (addr_string_to_sals): ... and here.
1801
18022011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1803
1804 * Makefile.in (SFILES): Add missing C sources.
1805 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1806 Add missing headers.
1807
18082011-03-29 Mike Frysinger <vapier@gentoo.org>
1809
1810 * .gitignore: New file.
1811
18122011-03-29 Mike Frysinger <vapier@gentoo.org>
1813
1814 * NEWS: Mention new cfi device simulation.
1815
18162011-03-29 Tom Tromey <tromey@redhat.com>
1817
1818 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1819 otherwise anonymous types.
1820 (dwarf2_name): Likewise.
1821 * valops.c (value_struct_elt_for_reference): Refine artificial
1822 type logic. Call error if j==-1.
1823
18242011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1825
1826 Fix false GCC warning.
1827 * infcall.c (find_function_addr): Initialize funaddr.
1828
18292011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1830
1831 Fix mingw compilation with --enable-targets=all.
1832 * remote-mips.c (gdb_usleep.h): Include header.
1833 (mips_enter_debug): Use gdb_usleep instead of sleep.
1834
18352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1836
1837 Support resolution of STT_GNU_IFUNC via breakpoints.
1838 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1839 bp_gnu_ifunc_resolver_return.
1840 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1841 the loop. Support bp_gnu_ifunc_resolver and
1842 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1843 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1844 breakpoints.
1845 (bptype_string, print_one_breakpoint_location): Support
1846 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1847 (user_settable_breakpoint): Return true also for
1848 bp_gnu_ifunc_resolver.
1849 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1850 bp_gnu_ifunc_resolver_return.
1851 (set_breakpoint_location_function): New parameter explicit_loc,
1852 describe it. Call find_pc_partial_function_gnu_ifunc with new
1853 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1854 EXPLICIT_LOC is not set.
1855 (set_raw_breakpoint): Set EXPLICIT_LOC for
1856 set_breakpoint_location_function.
1857 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1858 set_breakpoint_location_function.
1859 (mention): Support bp_gnu_ifunc_resolver and
1860 bp_gnu_ifunc_resolver_return.
1861 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1862 set_breakpoint_location_function.
1863 (update_breakpoint_locations): Remove static.
1864 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1865 bp_gnu_ifunc_resolver_return.
1866 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1867 bp_gnu_ifunc_resolver_return.
1868 (update_breakpoint_locations): New declaration.
1869 * elfread.c: Include gdbthread.h and regcache.h.
1870 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1871 functions.
1872 (elf_gnu_ifunc_fns): Install them.
1873 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1874 (stub_gnu_ifunc_resolver_return_stop): New functions.
1875 (stub_gnu_ifunc_fns): Install them.
1876 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1877 and gnu_ifunc_resolver_return_stop.
1878 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1879
18802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1881
1882 STT_GNU_IFUNC reader implementation.
1883 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1884 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1885 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1886 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1887 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1888 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1889 (elf_gnu_ifunc_resolve_addr): New.
1890 (elf_symfile_read): Call elf_rel_plt_read.
1891 (elf_gnu_ifunc_fns): New.
1892 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1893 Install elf_gnu_ifunc_fns.
1894 * infcall.c (find_function_return_type): New function.
1895 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1896 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1897 (stub_gnu_ifunc_resolve_name): New functions.
1898 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1899 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1900 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1901
19022011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1903
1904 Code cleanup for later STT_GNU_IFUNC support.
1905 * infcall.c (find_function_addr): Remove variable code, use explicit
1906 dereferences for it. Move VALUE_TYPE initialization later.
1907
19082011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1909
1910 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1911 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1912 (clear_pc_function_cache): Clear it.
1913 (find_pc_partial_function): Rename to ...
1914 (find_pc_partial_function_gnu_ifunc): ... this function. New
1915 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1916 (find_pc_partial_function): New wrapper for this function.
1917 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1918
19192011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 GDB internal type support for STT_GNU_IFUNC.
1922 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1923 (elf_symtab_read): Set mst_text_gnu_ifunc for
1924 BSF_GNU_INDIRECT_FUNCTION.
1925 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1926 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1927 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1928 nodebug_got_plt_symbol.
1929 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1930 (TYPE_GNU_IFUNC): New.
1931 (struct main_type): New field flag_gnu_ifunc.
1932 (struct builtin_type): New field builtin_func_func.
1933 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1934 nodebug_got_plt_symbol.
1935 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1936 (in_gnu_ifunc_stub): New.
1937 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1938 mst_text_gnu_ifunc.
1939 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1940 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1941 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1942 in_gnu_ifunc_stub.
1943 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1944 * symtab.c (search_symbols): Likewise.
1945 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1946 and mst_slot_got_plt.
1947 (in_gnu_ifunc_stub): New declaration.
1948
19492011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 Support a ring of related breakpoints.
1952 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1953 other functions, add gdb_assert.
1954 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1955 watchpoint_del_at_next_stop.
1956 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1957 (bpstat_stop_status): Handle ring in related_breakpoint.
1958 (set_raw_breakpoint_without_location): Initialize ring in
1959 related_breakpoint.
1960 (delete_breakpoint): Handle ring in related_breakpoint, use
1961 watchpoint_del_at_next_stop.
1962 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1963
19642011-03-28 Tom Tromey <tromey@redhat.com>
1965
1966 PR symtab/12441:
1967 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1968 with `language_minimal'.
1969
19702011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1971
1972 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1973 instead of checking for STT_ARM_TFUNC symbol type.
1974
19752011-03-25 Tom Tromey <tromey@redhat.com>
1976
1977 * linespec.c (symbol_found): Restore line-based result for
1978 non-LOC_LABEL symbols.
1979
19802011-03-25 Kai Tietz <ktietz@redhat.com>
1981
1982 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1983 instead of strcmp for comparison.
1984 (tui_source_is_displayed): Likewise.
1985 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1986
19872011-03-24 Mark Wielaard <mjw@redhat.com>
1988
1989 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1990 complaint.
1991 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1992 (find_partial_die_in_comp_unit): Likewise in comment.
1993 (read_attribute_value): Likewise.
1994 (lookup_die_type): Likewise.
1995 (dwarf_form_name): Likewise.
1996 (dump_die_shallow): Likewise.
1997 (follow_die_ref_or_sig): Likewise.
1998
19992011-03-24 Tom Tromey <tromey@redhat.com>
2000
2001 PR breakpoints/11816:
2002 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2003 (decode_compound): Update.
2004 (find_function_symbol): New function.
2005 (decode_dollar): Update.
2006 (decode_label): Add 'function_symbol' parameter. Handle
2007 function-relative labels.
2008 (decode_variable): Update.
2009 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2010 not its line. Set `special_display' and canonical name for
2011 labels.
2012
20132011-03-24 Tom Tromey <tromey@redhat.com>
2014
2015 * linespec.h (struct linespec_result) <special_display>: New
2016 field.
2017 * breakpoint.h (struct breakpoint) <display_canonical>: New
2018 field.
2019 * breakpoint.c (print_breakpoint_location): Respect
2020 display_canonical.
2021 (create_breakpoint_sal): Add 'display_canonical' parameter.
2022 (create_breakpoints_sal): Update.
2023 (create_breakpoint): Update.
2024
20252011-03-24 Tom Tromey <tromey@redhat.com>
2026
2027 * symtab.c (decode_line_spec): Update.
2028 * linespec.c (build_canonical_line_spec): Change type of
2029 'canonical'.
2030 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2031 (find_method, decode_all_digits, decode_dollar, decode_label)
2032 (symbol_found): Likewise.
2033 (init_linespec_result): New function.
2034 * breakpoint.c (struct captured_parse_breakpoint_args)
2035 <canonical_p>: New field, replaces addr_string_p.
2036 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2037 'addr_string'.
2038 (parse_breakpoint_sals): Likewise.
2039 (do_captured_parse_breakpoint): Update.
2040 (create_breakpoint): Use struct linespec_result.
2041 (until_break_command): Update.
2042 (breakpoint_re_set_one): Update.
2043 (decode_line_spec_1): Update.
2044 * linespec.h (struct linespec_result): New.
2045 (init_linespec_result): Declare.
2046
20472011-03-23 Pedro Alves <pedro@codesourcery.com>
2048
2049 * regcache.c (regcache_raw_read): If the target didn't supply a
2050 given raw register, mark it as unavailable.
2051
20522011-03-23 Kai Tietz <ktietz@redhat.com>
2053
2054 * breakpoint.c (clear_command): Use filename_cmp
2055 instead of strcmp for comparison.
2056 * buildsym.c (watch_main_source_file_lossage): Likewise.
2057 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2058 checking just for slash.
2059 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2060 strrchr and filename_cmp instead of strcmp for filenames.
2061 (add_old_header_file): Use filename_cmp
2062 instead of strcmp for comparison.
2063 * exec.c (exec_set_section_address): Likewise.
2064 * macrotab.c (macro_lookup_inclusion): Likewise.
2065 (macro_lookup_inclusion): Likewise.
2066 * elfread.c (_initialize_elfread): Likewise.
2067 (elfstab_offset_sections): Likewise.
2068 (elfstab_offset_sections): Use lbasename instead of
2069 strrchr.
2070 * mdebugread.c (parse_partial_symbols): Likewise.
2071 (arse_partial_symbols): Use filename_(n)cmp instead of
2072 str(n)cmp for comparison.
2073 * minsyms.c (lookup_minimal_symbol): Likewise.
2074 * psymtab.c (read_psymtabs_with_filename): Likewise.
2075 * solib.c (solib_read_symbols): Likewise.
2076 (reload_shared_libraries_1): Likewise.
2077 * symmisc.c (maintenance_print_symbols): Likewise.
2078 * symfile.c (separate_debug_file_exists): Likewise.
2079 (reread_symbols): Likewise.
2080 (find_separate_debug_file_by_debuglink): Likewise.
2081 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2082 * source.c (add_path): Likewise.
2083 * symtab.c (filename_seen): Likewise.
2084 (file_matches): Likewise.
2085 (print_symbol_info): Likewise.
2086 (maybe_add_partial_symtab_filename): Likewise.
2087 (make_source_files_completion_list): Likewise.
2088 * xml-syscall.c (init_sysinfo): Likewise.
2089 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2090 IS_DIR_SEPARATOR for checking for trailing path separator.
2091
20922011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2093
2094 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2095 label abort_expression.
2096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2097 DWARF_VALUE_OPTIMIZED_OUT.
2098
20992011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 Code cleanup.
2102 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2103 to linkage_name. Invert its value. Update the function comment.
2104 (c_type_print_varspec_suffix): Invert it at the caller.
2105 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2106
21072011-03-22 Pedro Alves <pedro@codesourcery.com>
2108
2109 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2110 errors when reading the `stop_pc'.
2111 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2112 get_frame_pc.
2113
21142011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2115
2116 * NEWS: Document gdb.Write stream keyword.
2117
21182011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2119
2120 Revert:
2121 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2123 (dwarf2_add_field): Fix new_field->accessibility for
2124 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2125
21262011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2127
2128 PR python/12183
2129
2130 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2131 other error classes. Do not print stack trace.
2132
21332011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2134
2135 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2136 (dwarf2_add_field): Fix new_field->accessibility for
2137 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2138
21392011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2140
2141 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2142 encountering a load via a non-SP register.
2143
21442011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2145
2146 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2147 field in returned unwinder.
2148
21492012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2150
2151 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2152
21532012-03-21 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2156 of xmalloc.
2157
21582012-03-18 Pedro Alves <pedro@codesourcery.com>
2159
2160 * frame.c (frame_unwind_register): Throw an error if unwinding the
2161 register failed.
2162 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2163 an unwind stop reason.
2164 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2165 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2166 UNWIND_UNAVAILABLE>: New.
2167 * inline-frame.c (inline_frame_unwind): Install
2168 default_frame_unwind_stop_reason.
2169 * frame-unwind.c: Include "exceptions.h".
2170 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2171 (default_frame_unwind_stop_reason): New.
2172 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2173 (default_frame_unwind_stop_reason): Declare.
2174 (struct frame_unwind) <stop_reason>: New function pointer.
2175
2176 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2177 * dwarf2-frame.c: Include exceptions.h.
2178 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2179 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2180 computing the CFA. If such an error was thrown, set
2181 unavailable_retaddr.
2182 (dwarf2_frame_unwind_stop_reason): New.
2183 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2184 unavailable.
2185 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2186 (dwarf2_signal_frame_unwind): Ditto.
2187
2188 * amd64-tdep.c: Include "exceptions.h".
2189 (struct amd64_frame_cache): New field "base_p".
2190 (amd64_init_frame_cache): Clear it.
2191 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2192 Avoid reading registers with functions that throw if the register
2193 is not necessary to compute the frame base.
2194 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2195 swallowing NOT_AVAILABLE_ERROR.
2196 (amd64_frame_unwind_stop_reason): New.
2197 (amd64_frame_this_id): Don't build a frame id if the frame base
2198 was unavailable.
2199 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2200 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2201 base_p if the frame base was computable.
2202 (amd64_sigtramp_frame_unwind_stop_reason): New.
2203 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2204 frame base was unavailable.
2205 (amd64_sigtramp_frame_unwind): Install
2206 amd64_sigtramp_frame_unwind_stop_reason.
2207 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2208 base_p if the frame base was computable.
2209 (amd64_epilogue_frame_unwind_stop_reason): New.
2210 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2211 frame base was unavailable.
2212 (amd64_epilogue_frame_unwind): Install
2213 amd64_epilogue_frame_unwind_stop_reason.
2214 * i386-tdep.c: Include "exceptions.h".
2215 (struct i386_frame_cache): New field "base_p".
2216 (i386_init_frame_cache): Clear it.
2217 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2218 Avoid reading registers with functions that throw if the register
2219 is not necessary to compute the frame base.
2220 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2221 swallowing NOT_AVAILABLE_ERROR.
2222 (i386_frame_unwind_stop_reason): New.
2223 (i386_frame_this_id): Don't build a frame id if the frame base was
2224 unavailable.
2225 (i386_frame_prev_register): Handle unavailable SP.
2226 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2227 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2228 base_p if the frame base was computable.
2229 (i386_epilogue_frame_unwind_stop_reason): New.
2230 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2231 base was unavailable.
2232 (i386_epilogue_frame_unwind): Install
2233 i386_epilogue_frame_unwind_stop_reason.
2234 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2235 base_p if the frame base was computable.
2236 (i386_sigtramp_frame_unwind_stop_reason): New.
2237 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2238 base was unavailable.
2239 (i386_sigtramp_frame_unwind): Install
2240 i386_sigtramp_frame_unwind_stop_reason.
2241 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2242 type's size, not the register's.
2243 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2244
2245 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2246 default_frame_unwind_stop_reason.
2247 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2248 (alpha_heuristic_frame_unwind): Ditto.
2249 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2250 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2251 * avr-tdep.c (avr_frame_unwind): Ditto.
2252 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2253 Ditto.
2254 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2255 * frv-tdep.c (frv_frame_unwind): Ditto.
2256 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2257 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2258 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2259 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2260 (hppa_stub_frame_unwind): Ditto.
2261 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2262 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2263 (ia64_libunwind_frame_unwind)
2264 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2265 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2266 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2267 * m32c-tdep.c (m32c_unwind): Ditto.
2268 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2269 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2270 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2271 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2272 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2273 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2274 * mep-tdep.c (mep_frame_unwind): Ditto.
2275 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2276 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2277 (mips_stub_frame_unwind): Ditto.
2278 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2279 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2280 * mt-tdep.c (mt_frame_unwind): Ditto.
2281 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2282 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2283 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2284 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2285 (s390_sigtramp_frame_unwind): Ditto.
2286 * score-tdep.c (score_prologue_unwind): Ditto.
2287 * sh-tdep.c (sh_frame_unwind): Ditto.
2288 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2289 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2290 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2291 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2292 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2293 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2294 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2295 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2296 (sparc64obsd_trapframe_unwind): Ditto.
2297 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2298 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2299 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2300 * v850-tdep.c (v850_frame_unwind): Ditto.
2301 * vax-tdep.c (vax_frame_unwind): Ditto.
2302 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2303 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2304 * xtensa-tdep.c (xtensa_unwind): Ditto.
2305
23062011-03-18 Pedro Alves <pedro@codesourcery.com>
2307
2308 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2309 there's always a frame. Use get_frame_pc_if_available instead of
2310 get_frame_pc, and if there's no PC available, don't look up a
2311 symtab.
2312
23132011-03-18 Pedro Alves <pedro@codesourcery.com>
2314
2315 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2316 unavailable PC.
2317
23182011-03-18 Pedro Alves <pedro@codesourcery.com>
2319
2320 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2321 gracefully.
2322
23232011-03-18 Pedro Alves <pedro@codesourcery.com>
2324
2325 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2326 * frame.c (frame_unwind_caller_pc_if_available): New.
2327 * stack.c (frame_info): Handle unavailable PC.
2328
23292011-03-18 Pedro Alves <pedro@codesourcery.com>
2330
2331 * frame.c (frame_unwind_pc): Rename to ...
2332 (frame_unwind_pc_if_available): ... this. New `pc' output
2333 parameter. Change return type to int. Gracefully handle
2334 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2335 happened, or 1 otherwise.
2336 (frame_unwind_pc): Reimplement on top of
2337 frame_unwind_pc_if_available.
2338 (get_frame_func): Rename to ...
2339 (get_frame_func_if_available): New `pc' output parameter. Change
2340 return type to int. Gracefully handle the PC not being available.
2341 (get_frame_func): Reimplement on top of
2342 get_frame_func_if_available.
2343 (select_frame): Handle the PC being unavailable.
2344 (get_prev_frame): Handle the PC being unavailable.
2345 (get_frame_pc_if_available): New.
2346 (get_frame_address_in_block_if_available): New.
2347 (find_frame_sal): Handle the frame PC not being available.
2348 * frame.h (get_frame_pc_if_available): Declare.
2349 (get_frame_address_in_block_if_available): Declare.
2350 (get_frame_func_if_available): Declare.
2351 * stack.c (print_frame_info): Handle the PC being unavailable.
2352 (find_frame_funname): Ditto.
2353 (print_frame): Handle the PC being unavailable.
2354 (get_frame_language): Ditto.
2355 * blockframe.c (get_frame_block): Ditto.
2356 * macroscope.c (default_macro_scope): Ditto.
2357 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2358
23592011-03-18 Pedro Alves <pedro@codesourcery.com>
2360
2361 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2362 NOT_AVAILABLE_ERROR when evaluating the location expression.
2363
23642011-03-18 Pedro Alves <pedro@codesourcery.com>
2365
2366 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2367 returning that the register piece is unavailable/optimized out.
2368 (write_pieced_value): Handle get_frame_register_bytes returning
2369 that the register piece is unavailable/optimized out when doing a
2370 read-modify write of a bitfield.
2371 * findvar.c (value_from_register): Handle get_frame_register_bytes
2372 returning that the register piece is unavailable/optimized out.
2373 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2374 and `unavailablep'. Throw error on bad debug info. Use
2375 frame_register instead of frame_register_read, to fill in the new
2376 arguments.
2377 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2378 and `unavailablep'.
2379 * valops.c: (value_assign): Adjust, and handle
2380 get_frame_register_bytes failing.
2381 * spu-tdep.c: Include exceptions.h.
2382 (spu_software_single_step): Adjust, and handle
2383 get_frame_register_bytes failing.
2384 (spu_get_longjmp_target): Ditto.
2385 * gdbarch.sh (register_to_value): Change to return int. New
2386 parameters `optimizedp' and `unavailablep'.
2387 * gdbarch.h, gdbarch.c: Regenerate.
2388 * i386-tdep.c (i386_register_to_value): Adjust to new
2389 gdbarch_register_to_value interface.
2390 * i387-tdep.c (i387_register_to_value): Ditto.
2391 * i387-tdep.h (i387_register_to_value): Ditto.
2392 * alpha-tdep.c (alpha_register_to_value): Ditto.
2393 * ia64-tdep.c (ia64_register_to_value): Ditto.
2394 * m68k-tdep.c (m68k_register_to_value): Ditto.
2395 * mips-tdep.c (mips_register_to_value): Ditto.
2396 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2397
23982011-03-18 Pedro Alves <pedro@codesourcery.com>
2399
2400 * findvar.c (value_of_register): Mark the value as unavailable, if
2401 the register is unavailable.
2402 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2403 (frame_register): New `unavailablep' parameter.
2404 (frame_register_read): Update comment.
2405 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2406 Set it if the register is unavailable. If the register is
2407 unavailable, clear the output buffer.
2408 (frame_register): New `unavailablep' parameter. Pass it down.
2409 (frame_unwind_register): Adjust.
2410 (put_frame_register): Adjust.
2411 (frame_register_read): Adjust. Also return false if the register
2412 is not available.
2413 (frame_register_unwind_location): Adjust.
2414 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2415 is unavailable, mark the value accordingly.
2416 * stack.c (frame_info): Handle unavailable registers.
2417
24182011-03-18 Pedro Alves <pedro@codesourcery.com>
2419
2420 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2421 simplify, using regcache_cooked_read.
2422
24232011-03-18 Pedro Alves <pedro@codesourcery.com>
2424
2425 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2426 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2427 (regcache_raw_read_unsigned, regcache_raw_read_part)
2428 (regcache_cooked_read, regcache_cooked_read_signed)
2429 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2430 (regcache_cooked_read_ftype): Change return to enum
2431 register_status.
2432 * regcache.c: Include exceptions.h
2433 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2434 (do_cooked_read): Change return to enum register_status. Always
2435 forward to regcache_cooked_read.
2436 (regcache_raw_read): Change return to enum register_status. If
2437 the register is not REG_VALID, memset the buffer. Return the
2438 register's status.
2439 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2440 return the register's status.
2441 (regcache_raw_read_unsigned): Ditto.
2442 (regcache_cooked_read): Change return to enum register_status.
2443 Assert that with read-only regcaches, the register's status must
2444 be known. If the regcache is read-only, and the register is not
2445 REG_VALID, memset the buffer. Return the register's status.
2446 (regcache_cooked_read_signed): Change return to enum
2447 register_status. Handle non-REG_VALID registers and return the
2448 register's status.
2449 (regcache_cooked_read_unsigned): Change return to enum
2450 register_status. Handle non-REG_VALID registers and return the
2451 register's status.
2452 (regcache_xfer_part, regcache_raw_read_part)
2453 (regcache_cooked_read_part): Change return to enum
2454 register_status. Return the register's status.
2455 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2456 unavailable.
2457 (regcache_dump): Handle unavailable cooked registers.
2458 * frame.c (do_frame_register_read): Adjust interface to match
2459 regcache_cooked_read_ftype.
2460 * gdbarch.sh (pseudo_register_read): Change return to enum
2461 register_status.
2462 * gdbarch.h, gdbarch.c: Regenerate.
2463
2464 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2465 register_status.
2466 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2467 register_status. If reading a raw register indicates the raw
2468 register is not valid, return the raw register's status,
2469 otherwise, return REG_VALID.
2470 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2471 register_status. Handle non-REG_VALID raw registers and return
2472 the register's status.
2473 * arm-tdep.c (arm_neon_quad_read)
2474 (arm_pseudo_read): Change return to enum register_status. Handle
2475 non-REG_VALID raw registers and return the register's status.
2476 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2477 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2478 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2479 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2480 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2481 register_status.
2482 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2483 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2484 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2485 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2486 (m32c_pseudo_register_read): Change return to enum
2487 register_status. Adjust.
2488 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2489 enum register_status. Return the register's status.
2490 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2491 register_status. Return the register's status.
2492 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2493 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2494 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2495 * rs6000-tdep.c (move_ev_register_func): New typedef.
2496 (e500_move_ev_register): Use it. Change return to enum
2497 register_status. Return the register's status.
2498 (do_regcache_raw_read): New function.
2499 (do_regcache_raw_write): New function.
2500 (e500_pseudo_register_read): Change return to enum
2501 register_status. Return the register's status. Use
2502 do_regcache_raw_read.
2503 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2504 (dfp_pseudo_register_read): Change return to enum register_status.
2505 Return the register's status.
2506 (vsx_pseudo_register_read): Ditto.
2507 (efpr_pseudo_register_read): Ditto.
2508 (rs6000_pseudo_register_read): Ditto.
2509 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2510 register_status. Return the register's status.
2511 * sh64-tdep.c (pseudo_register_read_portions): New function.
2512 (sh64_pseudo_register_read): Change return to enum
2513 register_status. Use pseudo_register_read_portions. Return the
2514 register's status.
2515 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2516 register_status. Return the register's status.
2517 * sh-tdep.c (pseudo_register_read_portions): New function.
2518 (sh_pseudo_register_read): Change return to enum register_status.
2519 Use pseudo_register_read_portions. Return the register's status.
2520 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2521 enum register_status. Return the register's status.
2522 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2523 * spu-tdep.c (spu_pseudo_register_read_spu)
2524 (spu_pseudo_register_read): Ditto.
2525 * xtensa-tdep.c (xtensa_register_read_masked)
2526 (xtensa_pseudo_register_read): Ditto.
2527 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2528
25292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2530
2531 * python/py-value.c (valpy_getitem): Fix formatting of error function
2532 call.
2533
25342011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2535
2536 ARI fixes: Add missing internationalization markups throughout
2537 C source files.
2538 * darwin-nat-info.c: Ditto.
2539 * record.c: Ditto.
2540 * remote.c: Ditto.
2541 * mi/mi-main.c: Ditto.
2542
25432011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2544
2545 ARI fixes: Add missing internationalization markups throughout
2546 yacc files.
2547 * c-exp.y: Ditto.
2548 * cp-name-parser.y: Ditto.
2549 * f-exp.y: Ditto.
2550 * m2-exp.y: Ditto.
2551 * objc-exp.y: Ditto.
2552 * p-exp.y: Ditto.
2553
25542011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2555
2556 ARI fixes: Messages should have no trailing new lines.
2557 * darwin-nat.c (mach_check_error): Remove trailing new line from
2558 warning function call message.
2559 * record.c (bfdcore_read): Idem for error call.
2560
25612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2562
2563 * common/signals.c (target_signal_from_host): Add _ markup to error
2564 function call message.
2565 (target_signal_to_host): Add _ markup and remove trailing new line
2566 from warning call message.
2567 (target_signal_from_command): Add _ markup to error function call
2568 message.
2569
25702011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2571
2572 PR python/12149
2573
2574 * python/python.c (gdbpy_write): Accept a stream argument and
2575 operate to the appropriate stream.
2576 (gdbpy_flush): Likewise.
2577 (_initialize_python): Add stream constants.
2578 (finish_python_initialization): Add GdbOutputErrorFile class.
2579
25802011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2581
2582 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2583
25842011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2585
2586 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2587 to store_signed_integer. Add debug message when relocating CALL
2588 instructions. Fix formatting of debug message.
2589 * i386-tdep.c (i386_relocate_instruction): Ditto.
2590
25912011-03-17 Joel Brobecker <brobecker@gnat.com>
2592
2593 * target.h (struct target_ops): Remove to_lookup_symbol field.
2594 (target_lookup_symbol): Delete macro.
2595 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2596 (update_current_target, setup_target_debug): Remove handling
2597 of to_lookup_symbol target_ops field.
2598 * ada-tasks.c (get_known_tasks_addr): Remove use of
2599 target_lookup_symbol.
2600 * coffread.c (coff_symtab_read): Likewise.
2601 * dbxread.c (read_dbx_symtab): Ditto.
2602
26032011-03-17 Joel Brobecker <brobecker@gnat.com>
2604
2605 PR gdb/12116:
2606 * configure.ac: Add getthrds declaration check.
2607 * configure, config.in: Regenerate.
2608 * aix-thread.c (getthrds): Declare only if not already declared
2609 in procinfo.h. More declaration out of get_signaled_thread to
2610 global scope.
2611
26122011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2613
2614 * python/py-symtab.c: Populate symtab_object_methods,
2615 sal_object_methods.
2616 (stpy_is_valid): New function.
2617 (salpy_is_valid): Ditto.
2618 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2619 (sympy_is_valid): New function.
2620 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2621 (objfpy_is_valid): New function.
2622 * python/py-inferior.c: Populate inferior_object_methods.
2623 (infpy_is_valid): New function.
2624 * python/py-infthread.c: Populate thread_object_methods.
2625 (thpy_is_valid): New function.
2626 * python/py-block.c: Declare block_object_methods. Populate. Declare
2627 block_iterator_object_methods. Populate.
2628 (blpy_is_valid): New function.
2629 (blpy_iter_is_valid): Ditto.
2630
26312011-03-16 Keith Seitz <keiths@redhat.com>
2632
2633 * linespec.c (find_methods): Canonicalize NAME before looking
2634 up the symbol.
2635 (name_end): New function.
2636 (keep_name_info): New function.
2637 (decode_line_1): Use keep_name_info.
2638 (decode_compound): Likewise.
2639 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2640 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2641
2642 PR c++/12273
2643 * linespec.c (locate_first_half): Keep overload information, too.
2644 (decode_compound): Use a string to represent break characters
2645 to escape the loop.
2646 If P points to a break character, do not increment it.
2647 For C++ and Java, keep overload information and relevant keywords.
2648 If we cannot find a symbol, search the minimal symbols.
2649
2650 PR c++/11734
2651 * linespec.c (decode_compound): Rename SAVED_ARG to
2652 THE_REAL_SAVED_ARG.
2653 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2654 single-quotes.
2655 Pass a valid block to lookup_symbol.
2656 (lookup_prefix_sym): Likewise.
2657 (find_method): Construct search name based on SYM_CLASS instead
2658 of SAVED_ARG.
2659 * psymtab.c (lookup_partial_symbol): Add language parameter.
2660 (lookup_symbol_aux_psymtabs): Likewise.
2661 Don't assume that the psymtab we found was the right one. Search
2662 for the desired symbol in the symtab to be certain.
2663 (psymtab_search_name): New function.
2664 (lookup_partial_symbol): Use psymtab_search_name.
2665 Add language parameter.
2666 (read_symtabs_for_function): Add language parameter and pass to
2667 lookup_partial_symbol.
2668 (find_symbol_file_from_partial): Likewise.
2669
26702011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2671
2672 PR gdb/12528
2673 * dwarf2read.c (noop_record_line): New function.
2674 (dwarf_decode_lines): Ignore line tables for GCd functions.
2675
26762011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2677
2678 Fix ARI warnings about new lines at the end of messages, which
2679 are unneeded as there is a new line added at the end of the message
2680 automatically.
2681 * darwin-nat.c (darwin_stop_inferior): Ditto.
2682 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2683 * dfp.c (decimal_to_number): Ditto.
2684 * exec.c (print_section_info): Ditto.
2685 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2686 * osdata.c (get_osdata): Ditto.
2687 * record.c (bfdcore_write): Ditto.
2688 * remote-mips.c (mips_readchar): Ditto.
2689 * remote.c (read_ptid): Ditto.
2690 * ser-mingw.c (ser_windows_raw): Ditto.
2691 * tracepoint.c (add_local_symbols): Ditto.
2692 * windows-nat.c (fake_create_process): Ditto.
2693
26942011-03-16 Tom Tromey <tromey@redhat.com>
2695
2696 * tracepoint.c (stop_tracing): Don't declare.
2697 * event-top.c (after_char_processing_hook): Add `(void)'.
2698
26992011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2700
2701 * NEWS: Add Parameter sub-classing description.
2702
27032011-03-16 Kai Tietz <ktietz@redhat.com>
2704
2705 * MAINTAINERS: Update my e-mail address.
2706
27072011-03-15 Andreas Tobler <andreast@fgznet.ch>
2708
2709 * MAINTAINERS: Add myself for write after approval privileges.
2710
27112011-03-15 Michael Snyder <msnyder@vmware.com>
2712
2713 * frame.c (find_frame_sal): Assert sym is not null.
2714
2715 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2716
2717 * objc-lang.c (selectors_info): Check strchr for null result.
2718
2719 * stabsread.c (define_symbol): Guard against bad stabstring input.
2720
27212011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2722
2723 Remove trailing spaces and tabulations from pascal language
2724 support sources.
2725 p-exp.y: Ditto.
2726 p-lang.c: Ditto.
2727 p-lang.h: Ditto.
2728 p-valprint.c: Ditto.
2729
27302011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2733 than LOW. Comment it.
2734 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2735 HIGHPC not strictly higher than LOWPC.
2736
27372011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2738
2739 Fix formatting of function declarations returning a pointer in
2740 previous commit.
2741 * varobj.c (varobj_add_child): Ditto.
2742 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2743 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2744
27452011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2746
2747 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2748 for the "generic" vector ABI used with GCC 4.3 and later.
2749 (ppc64_sysv_abi_return_value): Likewise.
2750
27512011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2752
2753 * infcall.c (call_function_by_hand): Function return value is
2754 always a non_lval, even when using struct_return.
2755
27562011-03-15 Pedro Alves <pedro@codesourcery.com>
2757
2758 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2759 (map_display_numbers): New.
2760 (do_delete_display): New.
2761 (undisplay_command): Use map_display_numbers.
2762 (do_enable_disable_display): New.
2763 (enable_disable_display_command): New function.
2764 (enable_display): Delete.
2765 (enable_display_command): New.
2766 (disable_display_command): Reimplement.
2767 (_initialize_printcmd): Adjust "enable display" command to use
2768 `enable_display_command' as callback.
2769
27702011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2771
2772 * NEWS: Add Python breakpoint 'stop' operation.
2773
27742011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2775
2776 * NEWS: Delete duplicate entry. Fix typo.
2777
27782011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2779
2780 Fix ARI warning about function names in first column.
2781 Put prototype declaration on same line as return type.
2782 * objc-exp.y: Ditto.
2783 * p-exp.y: Ditto.
2784 * python/py-stopevent.h: Ditto.
2785 For long function names, split parameters to
2786 allow function name on same line as return type.
2787 * solib-pa64.c: Ditto.
2788 * varobj.c: Ditto.
2789 * varobj.h: Ditto.
2790 For long function declaration, use single line.
2791 * hppa-tdep.h: Ditto.
2792 * inferior.h: Ditto.
2793
27942011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2795
2796 * python/python.h: Declare gdbpy_should_stop and
2797 gdbpy_breakpoint_has_py_cond.
2798 * python/python.c: Add python.h to includes. Remove python.h from
2799 HAVE_PYTHON definition
2800 (gdbpy_should_stop): New dummy function.
2801 (gdbpy_breakpoint_has_py_cond): New dummy function.
2802 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2803 sub-classing capabilities.
2804 (gdbpy_should_stop): New function.
2805 (gdbpy_breakpoint_has_py_cond): New function.
2806 (local_setattro): New function.
2807 * breakpoint.c (condition_command): Add check for Python 'stop'
2808 operation.
2809 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2810 operation function as part of stop/continue tests.
2811
28122011-03-14 Tom Tromey <tromey@redhat.com>
2813
2814 PR gdb/12576:
2815 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2816 (needs_frame_dwarf_call): Likewise.
2817
28182011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2819
2820 Fix ARI warning about functions without parameters that do not
2821 use (void).
2822 * breakpoint.c (all_tracepoints): Replace () by (void).
2823 * f-exp.y (match_string_literal): Ditto.
2824 (yylex): Ditto.
2825 * m2-exp.y (yylex): Ditto.
2826 * mep-tdep.c (current_me_module): Ditto.
2827 (current_options): Ditto.
2828 (current_cop_data_bus_width): Ditto.
2829 (current_cr_names): Ditto.
2830 (current_cr_is_float): Ditto.
2831 (current_ccr_names): Ditto.
2832 * objc-exp.y (yylex): Ditto.
2833 * p-exp.y (yylex): Ditto.
2834 * remote.c (send_interrupt_sequence): Ditto.
2835 * tracepoint.c (current_trace_status): Ditto.
2836 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2837 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2838
28392011-03-11 Michael Snyder <msnyder@vmware.com>
2840
2841 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2842 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2843 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2844 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2845 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2846
2847 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2848 (delete_async_event_handler): Ditto.
2849
2850 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2851
2852 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2853
2854 * top.c (set_verbose): Assert showcmd was found.
2855
28562011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2857
2858 * xtensa-tdep.c (warning_once): Correct style issues.
2859
28602011-03-11 Yao Qi <yao@codesourcery.com>
2861
2862 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2863
28642011-03-11 Andreas Schwab <schwab@redhat.com>
2865
2866 * common/aclocal.m4: Remove.
2867
28682011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2869
2870 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2871 (xtensa_write_register, xtensa_read_register): Likewise.
2872 (xtensa_hextochar): Removed.
2873 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2874
28752011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2876
2877 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2878 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2879 (xtensa_alloc_frame_cache): Add initialization for new fields.
2880 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2881 (warning_once): New function.
2882 (xtensa_insn_kind): New item c0opc_and.
2883 (call0_classify_opcode): Add the case for AND instruction.
2884 (call0_track_op): Change arguments. New local variable litbase.
2885 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2886 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2887 in the prologue.
2888 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2889 (call0_analyze_prologue): Update the comments. Change arguments.
2890 Add the variety of updates to handle extended prologues, which now can
2891 conduct dynamic stack adjustments.
2892 (call0_frame_cache): Likewise.
2893 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2894 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2895
28962011-03-10 Michael Snyder <msnyder@vmware.com>
2897
2898 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2899 (cmd_qtframe): Ditto.
2900 (cmd_qtbuffer): Ditto.
2901 (cmd_bigqtbuffer): Ditto.
2902
29032011-03-10 Tom Tromey <tromey@redhat.com>
2904
2905 * tracepoint.c (trace_actions_command): Update.
2906 * thread.c (thread_apply_command): Update.
2907 * reverse.c (delete_bookmark_command): Update.
2908 (bookmarks_info): Update.
2909 * printcmd.c (undisplay_command): Update.
2910 * memattr.c (mem_enable_command): Update.
2911 (mem_disable_command): Update.
2912 (mem_delete_command): Update.
2913 * inferior.c (detach_inferior_command): Update.
2914 (kill_inferior_command): Update.
2915 (remove_inferior_command): Update.
2916 * cli/cli-utils.h (struct get_number_or_range_state): New.
2917 (init_number_or_range): Declare.
2918 (get_number_or_range): Update.
2919 * cli/cli-utils.c (init_number_or_range): New function.
2920 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2921 static variables.
2922 (number_is_in_list): Update.
2923 * breakpoint.h (get_tracepoint_by_number): Update.
2924 * breakpoint.c (map_breakpoint_numbers): Update for change to
2925 get_number_or_range.
2926 (find_location_by_number): Use get_number, not
2927 get_number_or_range.
2928 (trace_pass_set_count): New function.
2929 (trace_pass_command): Update for change to get_number_or_range.
2930 Rework loop logic.
2931 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2932 'state' parameter.
2933
29342011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2935
2936 * python/py-param.c (add_setshow_generic): Add set/show callback
2937 parameters. Register Python object context.
2938 (get_show_value): New function.
2939 (get_set_value): New function.
2940 (call_doc_function): New function.
2941 (get_doc_string): Move behind get_show_value/get_set_value.
2942
29432011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2944
2945 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2946
29472011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2948
2949 * xtensa-tdep.c (xtensa_read_register): Add comment.
2950 (xtensa_write_register): Likewise.
2951 (xtensa_hextochar): Add comment and update to match coding conventions.
2952 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2953 (execute_l32e, execute_s32e, execute_code): Update comments.
2954 (xtensa_exception_handler_t): Update to match coding conventions.
2955 (xtensa_insn_kind): Likewise.
2956
29572011-03-09 Michael Snyder <msnyder@vmware.com>
2958
2959 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2960
29612011-03-09 Pedro Alves <pedro@codesourcery.com>
2962
2963 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2964
29652011-03-09 Tom Tromey <tromey@redhat.com>
2966
2967 * thread.c (restore_selected_frame): Handle frame_level == -1.
2968 (make_cleanup_restore_current_thread): Use
2969 get_selected_frame_if_set.
2970 * frame.h (get_selected_frame_if_set): Declare.
2971 * frame.c (get_selected_frame_if_set): New function.
2972
29732011-03-09 Pedro Alves <pedro@codesourcery.com>
2974
2975 * cli/cli-cmds.c (shell_escape): Use lbasename.
2976 * coffread.c (coff_start_symtab): Constify parameter.
2977 (complete_symtab): Constify `name' parameter.
2978 (coff_symtab_read): Constify `filestring' local.
2979 (coff_getfilename): Constify return and `result' local.
2980 Use lbasename.
2981 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2982 * linux-fork.c (info_checkpoints_command): Use lbasename.
2983 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2984 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2985 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2986 * procfs.c (procfs_make_note_section): Use lbasename.
2987 * tui/tui-io.c (printable_part): Constity return and parameter.
2988 Use lbasename.
2989 (print_filename): Constify parameters, and local `s'.
2990 (tui_rl_display_match_list): Constify local `temp'.
2991
29922011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 Revert:
2995 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 Fix DWARF-3+ DW_AT_accessibility default assumption.
2997 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2998 cu->header.version >= 3.
2999
30002011-03-09 Yao Qi <yao@codesourcery.com>
3001
3002 * common/Makefile.in: Remove.
3003 * common/configure: Remove.
3004 * common/configure.ac: Remove.
3005
30062011-03-09 Yao Qi <yao@codesourcery.com>
3007
3008 Revert:
3009 2011-02-11 Yao Qi <yao@codesourcery.com>
3010
3011 * common/Makefile.in: Add copyright header.
3012
3013 2011-02-11 Yao Qi <yao@codesourcery.com>
3014
3015 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3016 libcommon.a.
3017 * configure.ac: Add common to sub dir.
3018 * configure: Regenerate.
3019
30202011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3021
3022 * xtensa-tdep.c (call0_ret): New function.
3023 (xtensa_skip_prologue): Speed up analysis.
3024
30252011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3026
3027 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3028 while executing MI command -data-list-changed-registers.
3029
30302011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3031
3032 * xtensa-tdep.c (xtensa_read_register): New function.
3033 (xtensa_write_register): New function.
3034 (xtensa_find_register_by_name): New function.
3035 (xtensa_windowed_frame_cache): Update comments in type description.
3036 (xtensa_frame_cache): Likewise.
3037 (xtensa_window_interrupt_insn): New function.
3038 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3039 (xtensa_insn_kind): Add new instructions.
3040 (rwx_special_register): New function.
3041 (call0_classify_opcode): Add new instructions to the analysis.
3042 (a0_saved, a7_saved, a11_saved): New variables.
3043 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3044 (execute_l32e): New function.
3045 (execute_s32e): New function.
3046 (xtensa_exception_handler_t): New type.
3047 (execute_code): New function.
3048 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3049 analysis for Xtensa Window Exception handlers.
3050
30512011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3052
3053 * xtensa-tdep.c (TX_PS): New.
3054 (windowing_enabled): Update to count for Call0 ABI.
3055 (xtensa_hextochar): New.
3056 (xtensa_init_reggroups): Make algorithm generic.
3057 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3058
30592011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3060
3061 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3062
30632011-03-08 Michael Snyder <msnyder@vmware.com>
3064
3065 * i386-tdep.c (i386_follow_jump): Check return value of
3066 target_read_memory.
3067 (i386_analyze_struct_return): Ditto.
3068 (i386_skip_probe): Ditto.
3069 (i386_match_insn): Ditto.
3070 (i386_skip_noop): Ditto.
3071 (i386_analyze_frame_setup): Ditto.
3072 (i386_analyze_register_saves): Ditto.
3073 (i386_skip_prologue): Ditto.
3074 (i386_skip_main_prologue): Ditto.
3075
3076 * target.c (read_whatever_is_readable): Fix memory leak.
3077
3078 * i386-tdep.c (i386_process_record): Document fall through.
3079
30802011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3081
3082 Fix DWARF-3+ DW_AT_accessibility default assumption.
3083 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3084 cu->header.version >= 3.
3085
30862011-03-08 Pedro Alves <pedro@codesourcery.com>
3087
3088 * remote.c (remote_check_symbols): Skip if the target has no
3089 execution.
3090
30912011-03-08 Joel Brobecker <brobecker@adacore.com>
3092
3093 * target.c (read_whatever_is_readable): Reformat comment,
3094 with a minor typo fix. Minor reformatting of the code.
3095
30962011-03-08 Yao Qi <yao@codesourcery.com>
3097
3098 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3099 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3100 Use cached result instead of calling displaced_in_arm_mode again.
3101 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3102 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3103 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3104 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3105 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3106 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3107 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3108 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3109 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3110 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3111 (arm_catch_kernel_helper_return): Likewise.
3112 * gdb/arm-tdep.h : Update function declarations.
3113
31142011-03-07 Michael Snyder <msnyder@vmware.com>
3115
3116 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3117
3118 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3119
3120 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3121
3122 * elfread.c (elf_symtab_read): Stop memory leak.
3123
3124 * main.c (captured_main): Fix memory leak.
3125
31262011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3127
3128 * ada-lang.c (compare_names): Call is_name_suffix with string1
3129 instead of string2.
3130
31312011-03-07 Tom Tromey <tromey@redhat.com>
3132
3133 * xcoffread.c (xcoff_sym_fns): Update.
3134 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3135 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3136 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3137 (symbol_file_add_with_addrs_or_offsets): Likewise.
3138 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3139 * somread.c (som_sym_fns): Update.
3140 * psymtab.h (require_partial_symbols): Declare.
3141 * psymtab.c (require_partial_symbols): New function.
3142 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3143 (ALL_OBJFILE_PSYMTABS): Undef.
3144 (ALL_PSYMTABS): Move from psympriv.h.
3145 (lookup_partial_symtab, find_pc_sect_psymtab)
3146 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3147 (find_last_source_symtab_from_partial)
3148 (forget_cached_source_info_partial)
3149 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3150 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3151 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3152 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3153 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3154 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3155 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3156 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3157 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3158 psymtabs.
3159 * mipsread.c (ecoff_sym_fns): Update.
3160 * machoread.c (macho_sym_fns): Update.
3161 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3162 (read_psyms): New function.
3163 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3164 (elf_sym_fns_lazy_psyms): New global.
3165 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3166 dwarf2_build_psymtabs.
3167 * dbxread.c (aout_sym_fns): Update.
3168 * coffread.c (coff_sym_fns): Update.
3169
31702011-03-07 Tom Tromey <tromey@redhat.com>
3171
3172 * infrun.c (print_exited_reason): Include inferior id and pid in
3173 message.
3174
31752011-03-07 Tom Tromey <tromey@redhat.com>
3176
3177 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3178 parameter.
3179 (target_has_execution_1): Update.
3180 (target_has_execution_current): Declare.
3181 (target_has_execution): Call target_has_execution_current.
3182 (default_child_has_execution): Update.
3183 * target.c (default_child_has_execution): Add 'the_ptid'
3184 parameter.
3185 (target_has_execution_1): Likewise.
3186 (target_has_execution_current): New function.
3187 (add_target): Update.
3188 (init_dummy_target): Update.
3189 * remote-m32r-sdi.c (m32r_has_execution): New function.
3190 (init_m32r_ops): Use it.
3191 * record.c (record_core_has_execution): Now static. Add
3192 'the_ptid' parameter.
3193 * inferior.c (have_live_inferiors): Don't save current thread.
3194 Use target_has_execution_1.
3195
31962011-03-07 Yao Qi <yao@codesourcery.com>
3197
3198 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3199
32002011-03-07 Joel Brobecker <brobecker@adacore.com>
3201
3202 * elfread.c (elf_symtab_read): Minor reformatting.
3203
32042011-03-07 Joel Brobecker <brobecker@adacore.com>
3205
3206 * objc-lang.c (selectors_info): Minor reformatting.
3207
32082011-03-07 Joel Brobecker <brobecker@adacore.com>
3209
3210 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3211
32122011-03-07 Joel Brobecker <brobecker@adacore.com>
3213 Michael Snyder <msnyder@vmware.com>
3214
3215 * ada-valprint.c (ada_val_print_array): Move the declaration of
3216 "byte_order" and "elttype" inside the block where these variables
3217 are actually used. Remove some special handling for the case
3218 where "elttype" and "eltlen" are null. Replace by a comment
3219 and a couple of assertion checks.
3220
32212011-03-05 Michael Snyder <msnyder@vmware.com>
3222
3223 * source.c (add_path): Replace semicolon at end of block.
3224 * dwarf2expr.c (execute_stack_op): Ditto.
3225
32262011-03-05 Mike Frysinger <vapier@gentoo.org>
3227
3228 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3229 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3230 (bfin-*-*): Likewise.
3231
32322011-03-05 Michael Snyder <msnyder@vmware.com>
3233
3234 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3235 * mdebugread.c (parse_symbol): Ditto.
3236 * parse.c (parse_exp_in_context): Ditto.
3237 * source.c (add_path): Ditto.
3238 * utils.c (gnu_debuglink_crc32): Ditto.
3239 * varobj.c (variable_language): Ditto.
3240
3241 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3242
32432011-03-04 Michael Snyder <msnyder@vmware.com>
3244
3245 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3246
3247 * symfile.c (simple_overlay_update): Check for null return value
3248 from lookup_minimal_symbol.
3249
3250 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3251
32522011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3253
3254 * eval.c (parse_and_eval_address_1): Remove function.
3255 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3256 instead of parse_and_eval_address_1.
3257 * value.h (parse_and_eval_address_1): Remove prototype.
3258
32592011-03-04 Michael Snyder <msnyder@vmware.com>
3260
3261 * remote.c (putpkt_binary): Document that case stmt falls through.
3262
32632011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3264
3265 * breakpointc (print_it_typical): Move NULL check from here...
3266 (print_bp_stop_message): ... to here.
3267
32682011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3269
3270 * breakpoint.c (enable_command): Use break instead of continue,
3271 and fill in a missing break.
3272 (disable_command): Ditto.
3273
32742011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3275
3276 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3277 (terminal_save_ours): Remove misleading comment.
3278 (inflow_inferior_data_cleanup): Free ttystate.
3279 (inflow_inferior_exit): Likewise.
3280 (copy_terminal_info): Copy ttystate.
3281
3282 * serial.c (serial_copy_tty_state): New function.
3283 * serial.h (serial_copy_tty_state): Add prototype.
3284 (struct serial_ops): Add copy_tty_state callback.
3285 * ser-base.c (ser_base_copy_tty_state): New function.
3286 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3287 * ser-go32.c (dos_copy_tty_state): New function.
3288 (dos_ops): Install copy_tty_state callback.
3289 * ser-mingw.c (_initialize_ser_windows): Likewise.
3290 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3291 * ser-unix.c (hardwire_copy_tty_state): New function.
3292 (_initialize_ser_hardwire): Install it.
3293
32942011-03-04 Michael Snyder <msnyder@vmware.com>
3295
3296 * breakpoint.c (create_breakpoint): Add missing break statement.
3297
3298 Reverting this patch:
3299 * infcall.c (call_function_by_hand): Add break statements for lint.
3300
3301 Reverting this patch:
3302 * cli/cli-script.c (script_from_file): Add break for lint.
3303
33042011-03-04 Michael Snyder <msnyder@vmware.com>
3305
3306 * solib.c (reload_shared_libraries_1): Close memory leak.
3307
33082011-03-03 Tom Tromey <tromey@redhat.com>
3309
3310 PR gdb/12538:
3311 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3312 DW_STRING is NULL.
3313
33142011-03-03 Michael Snyder <msnyder@vmware.com>
3315
3316 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3317 fields of struct 'st' to zero.
3318
3319 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3320 sal.pspace before calling set_current_source_symtab_and_line.
3321
33222011-03-03 Yao Qi <yao@codesourcery.com>
3323
3324 * Makefile.in (configure-common): Remove. Let Makefile
3325 in dir common to rebuild itself.
3326 (common/Makefile): Likewise.
3327
33282011-03-03 Joel Brobecker <brobecker@adacore.com>
3329
3330 * utils.c (parse_escape): Add i18n markup in error message.
3331
33322011-03-03 Yao Qi <yao@codesourcery.com>
3333
3334 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3335 ARM_PC_REGNUM.
3336 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3337 (displaced_write_reg, displaced_read_reg): Likewise.
3338 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3339 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3340 (cleanup_branch): Replace magic number 14 and 15 with
3341 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3342
33432011-03-02 Michael Snyder <msnyder@vmware.com>
3344
3345 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3346
3347 * cli/cli-script.c (script_from_file): Add break for lint.
3348
3349 * mdebugread.c (parse_partial_symbols): Fix indent.
3350
3351 * target-descriptions.c (tdesc_gdb_type): No need to call
3352 xstrdup, callee saves a copy.
3353
3354 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3355
3356 * infcall.c (call_function_by_hand): Add break statements for lint.
3357
3358 * utils.c (parse_escape): Escape the escape char.
3359
3360 * python/py-inferior.c (build_inferior_list): Error out if
3361 PyList_Append fails.
3362 (gdbpy_inferiors): Error out if build_inferior_list fails.
3363
3364 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3365 a function call.
3366
3367 * record.c (record_restore): Move printf to before error return.
3368
33692011-03-02 Yao Qi <yao@codesourcery.com>
3370
3371 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3372 is_thumb and insn_size.
3373 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3374 on both ARM and Thumb mode.
3375 (arm_process_displaced_insn): Set is_thumb and insn_size.
3376 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3377 (arm_displaced_step_fixup): Likewise.
3378
33792011-03-01 Michael Snyder <msnyder@vmware.com>
3380
3381 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3382
3383 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3384
3385 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3386
3387 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3388
3389 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3390 with xmalloc.
3391
3392 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3393 which shadows function parameter.
3394
3395 * tracepoint.c (create_tsv_from_upload): Superfluous call
3396 to xstrdup. Callee already calls xstrdup.
3397
3398 * linespec.c (decode_line_1): Remove unnecessary null check.
3399
3400 * tracepoint.c (scope_info): Fix mem leak, remove underused
3401 variable.
3402
3403 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3404 superfluous null check.
3405
3406 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3407 (value_of_builtin_frame_fp_reg): Ditto.
3408
3409 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3410
3411 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3412 be null.
3413
3414 * linespec.c (decode_line_1): Check for null before dereference.
3415
3416 * reverse.c (record_restore): Move null-check to before pointer
3417 dereference.
3418
3419 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3420
3421 * objc-lang.c (selectors_info): Add explanitory comment.
3422 (classes_info): Ditto.
3423
34242011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3425
3426 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3427 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3428 versions of the trampoline. Handle Thumb vs. ARM addresses.
3429 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3430 (arm_linux_init_abi): Install it.
3431 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3432 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3433
34342011-02-28 Michael Snyder <msnyder@vmware.com>
3435
3436 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3437 a little bigger, to avoid possibility of an overflow.
3438
3439 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3440 buffers a little bigger, to avoid possibility of an overflow.
3441
3442 * coffread.c (coff_getfilename): Add check to avoid overflow.
3443
3444 * objc-lang.c (selectors_info): Add a small safety margin to
3445 avoid overflow.
3446 (classes_info): Error out on too long REGEXP.
3447
3448 * infrun.c (handle_inferior_event): Remove unused function call.
3449
3450 * fork-child.c (fork_inferior): Remove ifdef'd code and
3451 unused variable.
3452
3453 * linux-thread-db.c (attach_thread): Discard unused value.
3454
3455 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3456
3457 * remote.c (remote_get_noisy_reply): Discard unused value.
3458 (remote_vcont_resume): Ditto.
3459 (remote_stop_ns): Ditto.
3460
3461 * linespec.c (decode_objc): Delete unused variable.
3462
3463 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3464
3465 * dwarf2read.c (add_partial_symbol): Discard unused values.
3466 (read_base_type): Delete unused variable.
3467
3468 * dbxread.c (read_dbx_symtab): Discard unused value.
3469
3470 * eval.c (evaluate_subexp_standard): Delete unused variable,
3471 and discard unused values.
3472
3473 * infcmd.c (_initialize_infcmd): Discard unused values.
3474
3475 * stabsread.c (rs6000_builtin_type): Missing break statement.
3476
3477 * dbxread.c (process_one_symbol): Discard unused value.
3478
3479 * coffread.c (coff_end_symtab): Delete unused variable.
3480
3481 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3482 (dwarf2_add_typedef): Delete unused variable.
3483 (read_namespace): Ditto.
3484 (dwarf_decode_macros): Ditto.
3485
3486 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3487
3488 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3489
3490 * p-valprint.c (pascal_val_print): Discard unused value.
3491
3492 * utils.c (nquery): Call va_end before return;
3493 (yquery): Ditto.
3494 (query): Ditto.
3495
3496 * proc-service.c (ps_plog): Call va_end before return.
3497
34982011-02-28 Tom Tromey <tromey@redhat.com>
3499
3500 * python/python.c (gdbpy_value_cst): New global.
3501 (_initialize_python): Initialize it.
3502 * python/python-internal.h (gdbpy_value_cst): Declare.
3503 * python/py-value.c (convert_value_from_python): Use
3504 gdbpy_value_cst.
3505
35062011-02-28 Michael Snyder <msnyder@vmware.com>
3507
3508 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3509
3510 * breakpoint.c (catch_syscall_completer): Free malloced list.
3511
3512 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3513
3514 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3515 (lval_func_check_synthetic_pointer): Ditto.
3516 (lval_func_free_closure): Fix use-after-free.
3517
35182011-02-28 Tom Tromey <tromey@redhat.com>
3519
3520 * psymtab.c (expand_partial_symbol_tables): Use
3521 ALL_OBJFILE_PSYMTABS.
3522
35232011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 * objc-lang.c (selectors_info): Error on too long REGEXP.
3526
35272011-02-28 Michael Snyder <msnyder@vmware.com>
3528
3529 * python/py-param.c (set_parameter_value): Add missing
3530 break statement.
3531
3532 * linux-record.c (record_linux_system_call): Add missing
3533 break statement.
3534
35352011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3536
3537 * breakpoint.c (print_one_breakpoint_location): Remove unused
3538 argument PRINT_ADDRESS_BITS. Update callers.
3539 (print_one_breakpoint): Likewise.
3540
35412011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3542
3543 * breakpoint.c (wrap_indent_at_field): New function.
3544 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3545 Allocate ui_stream locally instead of using STB argument.
3546 (print_one_breakpoint_location): Update call.
3547 * ui-out.c (ui_out_query_field): New function.
3548 * ui-out.h (ui_out_query_field): Add prototype.
3549
35502011-02-28 Joel Brobecker <brobecker@adacore.com>
3551
3552 From Michael Snyder <msnyder@vmware.com>
3553 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3554
35552011-02-27 Michael Snyder <msnyder@vmware.com>
3556
3557 * objc-lang.c (selectors_info): Prevent string overrun.
3558
3559 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3560 error in strncpy.
3561
3562 * symtab.c (rbreak_command): Move variable 'file_name' to
3563 outer scope.
3564
3565 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3566 param with a local variable of the same name.
3567
35682011-02-27 Michael Snyder <msnyder@vmware.com>
3569
3570 * value.c (value_from_history_ref): New function.
3571 * value.h (value_from_history_ref): Export.
3572 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3573 to parse value history references.
3574 * cli/cli-utils.h (get_number_trailer): Update comment.
3575
35762011-02-27 Michael Snyder <msnyder@vmware.com>
3577
3578 * inferior.c (detach_inferior_command): Use get_number_or_range.
3579 (kill_inferior_command): Ditto.
3580 (remove_inferior_command): Ditto.
3581 (initialize_inferiors): Make command names plural.
3582 Update help strings.
3583
35842011-02-27 Michael Snyder <msnyder@vmware.com>
3585
3586 * darwin-nat-info.c: Fix comment typo.
3587 * dwarf2expr.h: Ditto.
3588 * fbsd-nat.c: Ditto.
3589 * fbsd-nat.h: Ditto.
3590 * frame-unwind.h: Ditto.
3591 * frame.h: Ditto.
3592 * hppa-hpux-tdep.c: Ditto.
3593 * i386-linux-nat.c: Ditto.
3594 * linux-nat.c: Ditto.
3595 * nbsd-nat.c: Ditto.
3596 * nbsd-nat.h: Ditto.
3597 * ppc-linux-tdep.c: Ditto.
3598 * serial.c: Ditto.
3599 * ui-file.h: Ditto.
3600 * tui/tui-winsource.c: Ditto.
3601
36022011-02-26 Michael Snyder <msnyder@vmware.com>
3603
3604 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3605
3606 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3607
3608 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3609 with a local variable of the same name.
3610
3611 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3612 param with a local variable of the same name.
3613 (i387_supply_xsave): Ditto.
3614
3615 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3616 that it does not shadow a function parameter.
3617
3618 * i386-nat.c (i386_length_and_rw_bits): Document that case
3619 statement is meant to fall through.
3620
3621 * expprint.c (dump_subexp_body_standard): Document that case
3622 statement is meant to fall through.
3623
3624 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3625 dead if statement. Condition can't be false.
3626
36272011-02-25 Michael Snyder <msnyder@vmware.com>
3628
3629 * arm-tdep.c: Fix typos in comments.
3630 * bsd-uthread.c: Ditto.
3631 * completer.c: Ditto.
3632 * corelow.c: Ditto.
3633 * cp-namespace.c: Ditto.
3634 * cp-support.c: Ditto.
3635 * cris-tdep.c: Ditto.
3636 * dbxread.c: Ditto.
3637 * dwarf2read.c: Ditto.
3638 * frame.h: Ditto.
3639 * gdbtypes.h: Ditto.
3640 * inferior.h: Ditto.
3641 * mdebugread.c: Ditto.
3642 * mips-tdep.c: Ditto.
3643 * ppc-linux-nat.c: Ditto.
3644 * ppc-linux-tdep.c: Ditto.
3645 * printcmd.c: Ditto.
3646 * sol-thread.c: Ditto.
3647 * solib-frv.c: Ditto.
3648 * solist.h: Ditto.
3649 * sparc64-tdep.c: Ditto.
3650 * spu-tdep.c: Ditto.
3651 * stabsread.c: Ditto.
3652 * symfile.c: Ditto.
3653 * valops.c: Ditto.
3654 * varobj.c: Ditto.
3655 * vax-nat.c: Ditto.
3656 * python/py-block.c: Ditto.
3657 * python/py-symbol.c: Ditto.
3658 * python/py-symtab.c: Ditto.
3659 * python/py-value.c: Ditto.
3660 * tui/tui-win.c: Ditto.
3661
36622011-02-25 Michael Snyder <msnyder@vmware.com>
3663
3664 * inferior.c (print_inferior): Accept a string instead of an int
3665 for requested_inferiors, and use get_number_or_range to parse it.
3666 (info_inferiors_command): Pass args string to print_inferior.
3667 (initialize_inferiors): Change help string for info inferiors.
3668 * inferior.h (print_inferior): Export prototype change.
3669
36702011-02-25 Tom Tromey <tromey@redhat.com>
3671
3672 * common/ax.def (invalid2): Set to 0x31.
3673
36742011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3677 L and plongest.
3678 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3679 use L and plongest.
3680 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3681
36822011-02-24 Michael Snyder <msnyder@vmware.com>
3683
3684 * Makefile.in (clean): Make clean should remove generated files
3685 observer.h and observer.inc.
3686
36872011-02-24 Joel Brobecker <brobecker@adacore.com>
3688
3689 Revert the following patch (not approved yet):
3690 2011-02-21 Hui Zhu <teawater@gmail.com>
3691 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3692 * ax-gdb.c (gen_printf_expr_callback): New function.
3693 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3694 * ax-general.c (ax_memcpy): New function.
3695 (ax_print): Handle "printf".
3696 (ax_reqs): Ditto.
3697 * ax.h (ax_memcpy): Forward declare.
3698 * common/ax.def (invalid2): Removed.
3699 (printf): New entry.
3700 * printcmd.c (printcmd.h): New include.
3701 (string_printf): New function.
3702 (ui_printf): Removed.
3703 (printf_command): Remove static. Call string_printf.
3704 (eval_command): Call string_printf.
3705 * printcmd.h: New file.
3706 * tracepoint.c (validate_actionline,
3707 encode_actions_1): handle printf_command.
3708
37092011-02-23 Tom Tromey <tromey@redhat.com>
3710
3711 * ax-general.c (ax_pick): Add missing newline.
3712
37132011-02-23 Michael Snyder <msnyder@vmware.com>
3714
3715 * breakpoint.c (breakpoint_1): Change first argument from an int
3716 to a char pointer, so that the function now accepts a list of
3717 breakpoints rather than just one. Use new function
3718 'number_is_in_list' to implement.
3719 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3720 (watchpoints_info): Ditto.
3721 (tracepoints_info): Ditto.
3722 (maintenance_info_breakpoints): Ditto.
3723 (_initialize_breakpoint): Update help strings to reflect the fact
3724 that these functions can now take more than one argument.
3725 * cli/cli-utils.c (number_is_in_list): New function.
3726 * cli/cli-utils.h (number_is_in_list): Export.
3727
37282011-02-23 Michael Snyder <msnyder@vmware.com>
3729
3730 * memattr.c (mem_enable_command): Use get_number_or_range.
3731 (mem_disable_command): Ditto.
3732 (mem_delete_command): Ditto.
3733 (_initialize_mem): Tweak usage message to reflect multiple
3734 arguments.
3735
37362011-02-22 Doug Evans <dje@google.com>
3737
3738 Add gdb.lookup_global_symbol python function.
3739 * NEWS: Add entry.
3740 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3741 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3742 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3743
37442011-02-22 Tom Tromey <tromey@redhat.com>
3745
3746 * language.c (language_class_name_from_physname): Rename
3747 'curr_language' argument to 'lang'; use in body.
3748
37492011-02-22 Michael Snyder <msnyder@vmware.com>
3750
3751 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3752
37532011-02-22 Pedro Alves <pedro@codesourcery.com>
3754
3755 * frame-unwind.h: Fix comment to mention the this frame, not the
3756 next.
3757
37582011-02-22 Tom Tromey <tromey@redhat.com>
3759
3760 * symfile.c (auto_solib_limit): Remove.
3761 * symfile.h (auto_solib_limit): Remove.
3762
37632011-02-22 Joel Brobecker <brobecker@adacore.com>
3764
3765 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3766
37672011-02-21 Michael Snyder <msnyder@vmware.com>
3768
3769 * gdbthread.h (print_thread_info): Change prototype.
3770 * thread.c (print_thread_info): Accept char* instead of int for
3771 requested_threads argument. Use new function number_is_in_list
3772 to determine which threads to list.
3773 (info_threads_command): Pass char* to print_thread_info.
3774 * cli/cli-utils.c (number_is_in_list): New function.
3775 * cli/cli-utils.h (number_is_in_list): Export.
3776 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3777 print_thread_info.
3778 (print_one_inferior): Ditto.
3779 (mi_cmd_list_thread_groups): Ditto.
3780
37812011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 * common/Makefile.in (CFLAGS): New.
3784 (COMPILE): Add $(CFLAGS).
3785
37862011-02-21 Tom Tromey <tromey@redhat.com>
3787
3788 * breakpoint.c (catch_syscall_command_1): Fix typo.
3789
37902011-02-21 Tom Tromey <tromey@redhat.com>
3791
3792 * reverse.c: Include cli-utils.h.
3793 * printcmd.c: Include cli-utils.h.
3794 (string_printf): Use skip_spaces.
3795 * cli/cli-utils.h: New file.
3796 * cli/cli-utils.c: New file.
3797 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3798 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3799 * breakpoint.h (get_number, get_number_or_range): Move to
3800 cli-utils.h.
3801 * breakpoint.c: Include cli-utils.h.
3802 (get_number_trailer, get_number, get_number_or_range)
3803 (ep_skip_leading_whitespace): Move to cli-utils.c.
3804 (create_breakpoint_sal, find_condition_and_thread)
3805 (decode_static_tracepoint_spec, watch_command_1)
3806 (watch_maybe_just_location, ep_parse_optional_if_clause)
3807 (catch_fork_command_1, catch_exec_command_1)
3808 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3809 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3810 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3811 (HFILES_NO_SRCDIR): Add cli-utils.h.
3812 (cli-utils.o): New target.
3813
38142011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3815
3816 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3817 before calling discard_all_inferiors.
3818
38192011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3820
3821 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3822 (struct builtin_opencl_type): Remove.
3823 (builtin_opencl_type): Change return type to "struct type **".
3824 (lookup_opencl_vector_type): Update caller.
3825 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3826 (build_opencl_types): Install plain array of "struct type *"
3827 instead of "struct builtin_opencl_type".
3828
38292011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3830 Ulrich Weigand <uweigand@de.ibm.com>
3831
3832 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3833 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3834 (struct arm_linux_hwbp_cap): New type.
3835 (arm_linux_get_hwbp_cap): New function.
3836 (arm_linux_get_hw_breakpoint_count): Likewise.
3837 (arm_linux_get_hw_watchpoint_count): Likewise.
3838 (arm_linux_can_use_hw_breakpoint): Likewise.
3839 (arm_hwbp_type): New type.
3840 (arm_hwbp_control_t): Likewise.
3841 (struct arm_linux_hw_breakpoint): Likewise.
3842 (struct arm_linux_thread_points): Likewise.
3843 (arm_threads): New global variable.
3844 (arm_linux_find_breakpoints_by_tid): New function.
3845 (arm_hwbp_control_initialize): Likewise.
3846 (arm_hwbp_control_is_enabled): Likewise.
3847 (arm_hwbp_control_disable): Likewise.
3848 (arm_linux_hw_breakpoint_initialize): Likewise.
3849 (arm_linux_get_hwbp_type): Likewise.
3850 (arm_linux_hw_watchpoint_initialize): Likewise.
3851 (arm_linux_hw_breakpoint_equal): Likewise.
3852 (arm_linux_insert_hw_breakpoint1): Likewise.
3853 (arm_linux_remove_hw_breakpoint1): Likewise.
3854 (arm_linux_insert_hw_breakpoint): Likewise.
3855 (arm_linux_remove_hw_breakpoint): Likewise.
3856 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3857 (arm_linux_insert_watchpoint): Likewise.
3858 (arm_linux_remove_watchpoint): Likewise.
3859 (arm_linux_stopped_data_address): Likewise.
3860 (arm_linux_stopped_by_watchpoint): Likewise.
3861 (arm_linux_watchpoint_addr_within_range): Likewise.
3862 (arm_linux_new_thread): Likewise.
3863 (arm_linux_thread_exit): Likewise.
3864 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3865 related target callbacks. Register arm_linux_new_thread and
3866 arm_linux_thread_exit.
3867 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3868 * arm-tdep.c (arm_pc_is_thumb): Make global.
3869 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3870
38712011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3872
3873 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3874 per-frame locations while within a function epilogue.
3875
38762011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3877
3878 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3879 to GNU coding standards.
3880
38812011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3882
3883 Allow use of mingw native on Windows 95 OS.
3884 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3885 (ser_windows_close): Only call CancelIo if function exists.
3886 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3887 to check for existence of CancelIo function in kernel32 DLL.
3888
38892011-02-21 Hui Zhu <teawater@gmail.com>
3890
3891 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3892 * ax-gdb.c (gen_printf_expr_callback): New function.
3893 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3894 * ax-general.c (ax_memcpy): New function.
3895 (ax_print): Handle "printf".
3896 (ax_reqs): Ditto.
3897 * ax.h (ax_memcpy): Forward declare.
3898 * common/ax.def (invalid2): Removed.
3899 (printf): New entry.
3900 * printcmd.c (printcmd.h): New include.
3901 (string_printf): New function.
3902 (ui_printf): Removed.
3903 (printf_command): Remove static. Call string_printf.
3904 (eval_command): Call string_printf.
3905 * printcmd.h: New file.
3906 * tracepoint.c (validate_actionline,
3907 encode_actions_1): handle printf_command.
3908
39092011-02-19 Michael Snyder <msnyder@vmware.com>
3910
3911 * reverse.c (delete_one_bookmark): Argument is now bookmark
3912 id rather than pointer to bookmark struct.
3913 (delete_bookmark_command): Use get_number_or_range.
3914 (goto_bookmark_command): Parse with get_number instead of strtoul.
3915 (bookmark_1): New function. Print info for one bookmark.
3916 (bookmarks_info): Use get_number_or_range and bookmark_1.
3917
39182011-02-18 Michael Snyder <msnyder@vmware.com>
3919
3920 * thread.c (info_threads_command): Re-implement using
3921 get_number_or_range.
3922 (thread_apply_command): Ditto.
3923
39242011-02-18 Tom Tromey <tromey@redhat.com>
3925
3926 * common/ax.def: New file.
3927 * ax.h (enum agent_op): Use ax.def.
3928 * ax-general.c (aop_map): Use ax.def.
3929
39302011-02-18 Tom Tromey <tromey@redhat.com>
3931
3932 * ax-general.c (aop_map): Add pick and rot.
3933 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3934 <DW_OP_rot>: Implement.
3935 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3936 (ax_pick): Declare.
3937 * ax-general.c (ax_pick): New function.
3938
39392011-02-18 Tom Tromey <tromey@redhat.com>
3940
3941 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3942
39432011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 Tom Tromey <tromey@redhat.com>
3945
3946 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3947 make_symbol_overload_list_block with NULL BLOCK.
3948 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3949
39502011-02-18 Pedro Alves <pedro@codesourcery.com>
3951
3952 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3953 * breakpoint.h (get_number_or_range): Declare.
3954 * printcmd.c (ALL_DISPLAYS): Declare.
3955 (delete_display): Reimplement taking a display pointer.
3956 (undisplay_command): Accept a range of displays to delete, using
3957 get_number_or_range.
3958
39592011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3960
3961 * c-valprint.c (c_val_print): Add embedded_offset to address
3962 for arrays of unspecified length.
3963 * p-valprint.c (pascal_val_print): Likewise.
3964
39652011-02-18 Yao Qi <yao@codesourcery.com>
3966
3967 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3968 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3969 (thumb_process_displaced_insn): New.
3970 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3971 call to arm_process_displaced_insn.
3972 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3973
39742011-02-17 Tom Tromey <tromey@redhat.com>
3975
3976 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3977 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3978 compile_dwarf_to_ax. No longer static. Call
3979 dwarf2_compile_cfa_to_ax.
3980 (locexpr_tracepoint_var_ref): Update.
3981 (loclist_tracepoint_var_ref): Update.
3982 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3983 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3984 argument; add 'gdbarch' and 'pc'.
3985 (dwarf2_compile_cfa_to_ax): New function.
3986 (dwarf2_frame_cache): Update.
3987
39882011-02-17 Joel Brobecker <brobecker@adacore.com>
3989
3990 * ada-lang.c (ada_type_of_array): Fix the size of the array
3991 in the case of an unconstrained packed array.
3992
39932011-02-17 Yao Qi <yao@codesourcery.com>
3994
3995 * common/Makefile.in: Add more targets for make.
3996
39972011-02-16 Tom Tromey <tromey@redhat.com>
3998
3999 * dwarf2loc.c (unimplemented): Fix typo.
4000
40012011-02-16 Tom Tromey <tromey@redhat.com>
4002
4003 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4004 (compile_dwarf_to_ax) <default>: Use unimplemented.
4005 <DW_OP_deref>: Update.
4006 (disassemble_dwarf_expression): Update.
4007 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4008 (decode_locdesc): Update.
4009 * dwarf2expr.h (dwarf_stack_op_name): Update.
4010
40112011-02-16 Tom Tromey <tromey@redhat.com>
4012
4013 * ax.h (struct aop_map) <name>: Now const.
4014
40152011-02-16 Tom Tromey <tromey@redhat.com>
4016
4017 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4018 than axs_rvalue.
4019
40202011-02-16 Yao Qi <yao@codesourcery.com>
4021
4022 * infrun.c (get_displaced_step_closure_by_addr): New.
4023 * inferior.h: Declare it.
4024 * arm-tdep.c: (arm_pc_is_thumb): Call
4025 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4026 returns non-NULL.
4027
40282011-02-16 Pedro Alves <pedro@codesourcery.com>
4029 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 gdb/
4032 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4033
40342011-02-16 Pedro Alves <pedro@codesourcery.com>
4035 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 * value.c (value_contents_copy_raw): Extend describing comment.
4038 Assert that the destination contents we're overwriting are wholly
4039 available.
4040 (value_contents_copy): Extend describing comment.
4041
40422011-02-16 Pedro Alves <pedro@codesourcery.com>
4043 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * value.c (value_available_contents_eq): Remove redundant local
4046 variables. Fix available contents comparision.
4047 * value.h (value_available_contents_eq): Extend describing
4048 comment.
4049
40502011-02-16 Yao Qi <yao@codesourcery.com>
4051
4052 * thread.c (info_threads_command): Add missing i18n markup and remove
4053 trailing newline.
4054
40552011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4056
4057 * breakpoint.c (longjmp_names): New variable.
4058 (struct breakpoint_objfile_data): New type.
4059 (breakpoint_objfile_key): New variable.
4060 (msym_not_found): New variable.
4061 (msym_not_found_p): New predicate.
4062 (get_breakpoint_objfile_data): New function.
4063 (create_overlay_event_breakpoint): Check per-objfile cache for
4064 symbols first.
4065 (create_longjmp_master_breakpoint): Likewise.
4066 (create_std_terminate_master_breakpoint): Likewise.
4067 (create_exception_master_breakpoint): Likewise.
4068 (_initialize_breakpoint): Register per-objfile data key.
4069
40702011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4071
4072 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4073 parameter value.
4074 (create_longjmp_master_breakpoint): Loop over longjmp names.
4075 (create_std_terminate_master_breakpoint): Const-propagate parameter
4076 value.
4077 (update_breakpoints_after_exec): Adjust.
4078 (breakpoint_re_set): Adjust.
4079
40802011-02-15 Michael Snyder <msnyder@vmware.com>
4081
4082 * thread.c (info_threads_command): Process arg as thread id,
4083 or list of thread ids.
4084 (thread_find_command): New command.
4085 (_initialize_thread): Document argument for info threads.
4086 Document 'thread find' command.
4087 * NEWS: Document new command "thread find".
4088
40892011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4090
4091 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4092 * aclocal.m4: Regenerated with aclocal-1.11.1.
4093 * common/configure: Regenerate with autoconf-2.64.
4094
40952011-02-15 Ken Werner <ken.werner@de.ibm.com>
4096
4097 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4098 bool data type to a size of one byte.
4099
41002011-02-15 Pedro Alves <pedro@codesourcery.com>
4101 Jan Kratochvil <jan.kratochvil@redhat.com>
4102
4103 * target.c (memory_xfer_live_readonly_partial): Document where to
4104 look for interface description.
4105
41062011-02-15 Yao Qi <yao@codesourcery.com>
4107
4108 PR tdep/12352
4109 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4110 order to store PC value on stack instead of text section.
4111
41122011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4113
4114 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4115 the EFP register set size.
4116 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4117 data from the VMX register.
4118 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4119 and write data from/to the VMX register.
4120
41212011-02-14 Michael Snyder <msnyder@vmware.com>
4122
4123 * command.h (enum command_class): New class 'no_set_class', for
4124 "show" commands without a corresponding "set" command.
4125 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4126 * copying.c (_initialize_copying): Ditto for "show copying" and
4127 "show warranty".
4128 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4129 "show version".
4130 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4131 which there is no corresponding "set" command (eg. "show copying").
4132
41332011-02-14 Pedro Alves <pedro@codesourcery.com>
4134 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * exec.c (section_table_available_memory): Change `len' parameter
4137 type to ULONGEST.
4138 * exec.h (section_table_available_memory): Ditto.
4139 * value.h (read_value_memory): Rename the `offset' parameter to
4140 `embedded_offset'.
4141
41422011-02-14 Pedro Alves <pedro@codesourcery.com>
4143 Jan Kratochvil <jan.kratochvil@redhat.com>
4144
4145 * memrange.c (compare_mem_ranges): Mention sort order in
4146 describing comment.
4147 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4148 * tracepoint.c (traceframe_available_memory): Extend comment to
4149 mention what happens to RESULT when the target does not support
4150 the query.
4151
41522011-02-14 Pedro Alves <pedro@codesourcery.com>
4153 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4156 range.
4157
41582011-02-14 Pedro Alves <pedro@codesourcery.com>
4159
4160 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4161 No longer handle NULL values.
4162
41632011-02-14 Pedro Alves <pedro@codesourcery.com>
4164
4165 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4166 * value.c: Include "exceptions.h".
4167 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4168 generic error.
4169 * cp-abi.c: Include gdb_assert.h.
4170 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4171 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4172 errors.
4173 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4174 parameters. No longer returns -1 on error.
4175 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4176 `val' parameters.
4177 * cp-valprint.c: Include exceptions.h.
4178 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4179 the baseclass_offset. Handle unavailable base classes. Use
4180 val_print_invalid_address.
4181 * p-valprint.c: Include exceptions.h.
4182 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4183 when fetching the baseclass_offset. No longer expect
4184 baseclass_offset returning -1. Handle unavailable base classes.
4185 Use val_print_invalid_address.
4186 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4187 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4188 `embedded_offset' and `val' parameters. Adjust.
4189 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4190 parameter, and change its type to gdb_byte pointer. Add
4191 `embedded_offset' and `val' parameters. Adjust. No longer expect
4192 baseclass_offset returning -1.
4193 (value_dynamic_cast): Use value_contents_for_printing rather than
4194 value_contents. Adjust.
4195 (search_struct_field): No longer expect baseclass_offset returning
4196 -1.
4197 (search_struct_method): If reading memory from the target is
4198 necessary, wrap it in a new value to pass to baseclass_offset. No
4199 longer expect baseclass_offset returning -1.
4200 (find_method_list): No longer expect baseclass_offset returning
4201 -1. Use value_contents_for_printing rather than value_contents.
4202 * valprint.c (val_print_invalid_address): New function.
4203 * valprint.h (val_print_invalid_address): Declare.
4204 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4205 and `val' parameters. No longer expect baseclass_offset returning
4206 -1. Adjust.
4207 * gnu-v2-abi.c: Include "exceptions.h".
4208 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4209 parameters. Handle unavailable memory. Recurse through
4210 gnuv2_baseclass_offset directly, rather than through
4211 baseclass_offset. No longer returns -1 on not found, instead
4212 throw an error.
4213 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4214 `val' parameters. Adjust.
4215
42162011-02-14 Pedro Alves <pedro@codesourcery.com>
4217
4218 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4219 almost but not quite adjacent.
4220
42212011-02-14 Pedro Alves <pedro@codesourcery.com>
4222
4223 * value.h (value_entirely_available): Declare.
4224 * value.c (value_entirely_available): New function.
4225 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4226 real type if the pointer is unavailable.
4227
42282011-02-14 Pedro Alves <pedro@codesourcery.com>
4229
4230 * valops.c (value_repeat): Use read_value_memory instead of
4231 read_memory.
4232
42332011-02-14 Pedro Alves <pedro@codesourcery.com>
4234
4235 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4236 * value.c (value_contents_copy_raw, value_contents_copy): New
4237 functions.
4238 (value_primitive_field): Use value_contents_copy_raw instead of
4239 memcpy.
4240 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4241 memcpy.
4242 (value_array, value_slice): Ditto.
4243 * valarith.c (value_subscripted_rvalue): Use
4244 value_contents_copy_raw instead of memcpy.
4245
42462011-02-14 Pedro Alves <pedro@codesourcery.com>
4247
4248 <unavailable> references.
4249
4250 * valops.c (get_value_at): Use value_from_contents_and_address,
4251 avoiding read_memory.
4252
42532011-02-14 Pedro Alves <pedro@codesourcery.com>
4254
4255 * c-valprint.c (c_val_print): Print a string with unavailable
4256 contents as an array.
4257
42582011-02-14 Pedro Alves <pedro@codesourcery.com>
4259
4260 * value.h (unpack_bits_as_long): Delete declaration.
4261 (unpack_value_bits_as_long): Declare.
4262 (unpack_value_field_as_long): Declare.
4263 (value_field_bitfield): Declare.
4264 * value.c (unpack_bits_as_long): Rename to...
4265 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4266 value parameters. Return the extracted result in a new output
4267 parameter. If the value contents are unavailable, return false,
4268 otherwise return true.
4269 (unpack_value_bits_as_long): New.
4270 (unpack_field_as_long): Rename to...
4271 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4272 Add embedded_offset and value parameters. Return the extracted
4273 result in a new output parameter. If the value contents are
4274 unavailable, return false, otherwise return true.
4275 (unpack_value_field_as_long): New.
4276 (unpack_field_as_long_1): New.
4277 (unpack_field_as_long): Reimplement as wrapper around
4278 unpack_value_field_as_long_1.
4279 (value_field_bitfield): New function.
4280 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4281 unpack_value_bits_as_long. Mark the value as unavailable, if it
4282 is unavailable.
4283 * jv-valprint.c (java_print_value_fields): Use
4284 value_field_bitfield.
4285 * p-valprint.c (pascal_object_print_value_fields): Use
4286 value_field_bitfield.
4287 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4288
42892011-02-14 Pedro Alves <pedro@codesourcery.com>
4290
4291 * value.c (get_internalvar_integer): Also return the int value of
4292 TYPE_CODE_INT INTERNALVAR_VALUE values.
4293 (set_internalvar): Don't special case TYPE_CODE_INT.
4294
42952011-02-14 Pedro Alves <pedro@codesourcery.com>
4296
4297 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4298 INTERNALVAR_POINTER.
4299 <pointer>: Delete.
4300 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4301 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4302 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4303
43042011-02-14 Pedro Alves <pedro@codesourcery.com>
4305
4306 * value.h (value_available_contents_eq): Declare.
4307 * value.c (find_first_range_overlap): New function.
4308 (value_available_contents_eq): New function.
4309 * valprint.c (val_print_array_elements): Use
4310 value_available_contents_eq.
4311 * ada-valprint.c (val_print_packed_array_elements): Use
4312 value_available_contents_eq.
4313 * jv-valprint.c (java_value_print): Use
4314 value_available_contents_eq.
4315
43162011-02-14 Pedro Alves <pedro@codesourcery.com>
4317
4318 * target.c (target_read_live_memory): New function.
4319 (memory_xfer_live_readonly_partial): New.
4320 (memory_xfer_partial): If reading from a traceframe, fallback to
4321 reading unavailable read-only memory from read-only regions of
4322 live target memory.
4323 * tracepoint.c (disconnect_tracing): Adjust.
4324 (set_current_traceframe): New, factored out from
4325 set_traceframe_number.
4326 (set_traceframe_number): Reimplement to only change the traceframe
4327 number on the GDB side.
4328 (do_restore_current_traceframe_cleanup): Adjust.
4329 (make_cleanup_restore_traceframe_number): New.
4330 (cur_traceframe_number): New global.
4331 (tfile_open): Set cur_traceframe_number to no traceframe.
4332 (set_tfile_traceframe): New function.
4333 (tfile_trace_find): If looking up a traceframe using any method
4334 other than by number, make sure the current tfile traceframe
4335 matches gdb's current traceframe. Update the current tfile
4336 traceframe if the lookup succeeded.
4337 (tfile_fetch_registers, tfile_xfer_partial)
4338 (tfile_get_trace_state_variable_value): Make sure the remote
4339 traceframe matches gdb's current traceframe.
4340 * remote.c (remote_traceframe_number): New global.
4341 (remote_open_1): Set it to -1.
4342 (set_remote_traceframe): New function.
4343 (remote_fetch_registers, remote_store_registers)
4344 (remote_xfer_memory, remote_xfer_partial)
4345 (remote_get_trace_state_variable_value): Make sure the remote
4346 traceframe matches gdb's current traceframe.
4347 (remote_trace_find): If looking up a traceframe using any method
4348 other than by number, make sure the current remote traceframe
4349 matches gdb's current traceframe. Update the current remote
4350 traceframe if the lookup succeeded.
4351 * infrun.c (fetch_inferior_event): Adjust.
4352 * tracepoint.h (set_current_traceframe): Declare.
4353 (get_traceframe_number, set_traceframe_number): Add describing
4354 comments.
4355
43562011-02-14 Pedro Alves <pedro@codesourcery.com>
4357
4358 Mark pieces of values as unavailable if the corresponding memory
4359 is unavailable.
4360
4361 * valops.c: Include tracepoint.h.
4362 (value_fetch_lazy): Use read_value_memory.
4363 (read_value_memory): New.
4364 * value.h (read_value_memory): Declare.
4365 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4366 * exec.c (section_table_available_memory): New function.
4367 * exec.h (section_table_available_memory): Declare.
4368
43692011-02-14 Pedro Alves <pedro@codesourcery.com>
4370
4371 * Makefile.in (SFILES): Add memrange.c.
4372 (HFILES_NO_SRCDIR): Add memrange.h.
4373 (COMMON_OBS): Add memrange.o.
4374 * memrange.c: New file.
4375 * memrange.h: New file.
4376 * tracepoint.c: Include memrange.h.
4377 (struct mem_range): Delete.
4378 (mem_range_s): Delete.
4379 (traceframe_available_memory): New function.
4380 * tracepoint.h (traceframe_available_memory): Declare.
4381
43822011-02-14 Pedro Alves <pedro@codesourcery.com>
4383
4384 * target.h (struct traceframe_info): Forward declare.
4385 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4386 (struct target_ops) <to_traceframe_info>: New field.
4387 (target_traceframe_info): New.
4388 * target.c (update_current_target): Inherit and default
4389 to_traceframe_info.
4390 * remote.c (PACKET_qXfer_traceframe_info): New.
4391 (remote_protocol_features): Register qXfer:traceframe-info:read.
4392 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4393 (remote_traceframe_info): New.
4394 (init_remote_ops): Install it.
4395 (_initialize_remote): Install "set/show remote traceframe-info"
4396 commands.
4397 * tracepoint.h (parse_traceframe_info): Declare.
4398 * tracepoint.c (struct mem_range): New.
4399 (mem_range_s): New typedef.
4400 (struct traceframe_info): New.
4401 (traceframe_info): New global.
4402 (free_traceframe_info): New function.
4403 (clear_traceframe_info): New function.
4404 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4405 info.
4406 (build_traceframe_info): New function.
4407 (tfile_traceframe_info): New function.
4408 (init_tfile_ops): Install tfile_traceframe_info.
4409 (traceframe_info_start_memory, free_result): New functions.
4410 (memory_attributes, traceframe_info_elements): New globals.
4411 (parse_traceframe_info, get_traceframe_info): New functions.
4412 * features/traceframe-info.dtd: New file.
4413 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4414
44152011-02-14 Pedro Alves <pedro@codesourcery.com>
4416
4417 Base support for <unavailable> value contents.
4418
4419 * value.h (value_bytes_available): Declare.
4420 (mark_value_bytes_unavailable): Declare.
4421 * value.c (struct range): New struct.
4422 (range_s): New typedef.
4423 (ranges_overlap): New function.
4424 (range_lessthan): New function.
4425 (ranges_contain_p): New function.
4426 (struct value) <unavailable>: New field.
4427 (value_bytes_available): New function.
4428 (mark_value_bytes_unavailable): New function.
4429 (require_not_optimized_out): Constify parameter.
4430 (require_available): New function.
4431 (value_contents_all, value_contents): Require all bytes be
4432 available.
4433 (value_free): Free `unavailable'.
4434 (value_copy): Copy `unavailable'.
4435 * valprint.h (val_print_unavailable): Declare.
4436 * valprint.c (valprint_check_validity): Rename `offset' parameter
4437 to `embedded_offset'. If printing a scalar, check whether the
4438 value chunk is available.
4439 (val_print_unavailable): New.
4440 (val_print_scalar_formatted): Check whether the value is
4441 available.
4442 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4443 pretty-printing unavailable values.
4444
44452011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4446
4447 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4448 * c-typeprint.c (c_type_print_args): Update the function comment. New
4449 variable param_type, initialize it. Remove const/volatile qualifiers
4450 for language_cplus and !show_artificial. Use param_type.
4451
44522011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4453
4454 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4455 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4456 * symtab.h (struct symtab) <next>: Comment extension.
4457
44582011-02-12 Yao Qi <yao@codesourcery.com>
4459
4460 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4461
44622011-02-11 Yao Qi <yao@codesourcery.com>
4463
4464 * common/Makefile.in: Add copyright header.
4465
44662011-02-11 Pedro Alves <pedro@codesourcery.com>
4467
4468 * infrun.c (proceed): Move switching out and in of tfind mode from
4469 here ...
4470 (fetch_inferior_event): ... to here.
4471
44722011-02-11 Yao Qi <yao@codesourcery.com>
4473
4474 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4475 libcommon.a.
4476 * configure.ac: Add common to sub dir.
4477 * configure: Regenerate.
4478
44792011-02-11 Yao Qi <yao@codesourcery.com>
4480
4481 Build libcommon.a.
4482
4483 * common/Makefile.in: New.
4484 * common/configure.ac: New.
4485 * common/aclocal.m4: New.
4486 * common/configure: Generate.
4487
44882011-02-10 Pedro Alves <pedro@codesourcery.com>
4489
4490 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4491 side of the parenthesis.
4492
4493 Merge from GCC:
4494 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4495 * vec.h (VEC_block_remove): Fix comment.
4496
44972011-02-08 Michael Snyder <msnyder@vmware.com>
4498
4499 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4500
45012011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4502
4503 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4504 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4505 psubd and paddd.
4506
45072011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4508
4509 PR 12361.
4510 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4511 phsubsw.
4512 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4513 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4514
45152011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4516
4517 * dwarf2read.c (read_subroutine_type): Set special calling
4518 convention flag for functions compiled by IBM XL C for OpenCL.
4519 * ppc-sysv-tdep.c: Include "dwarf2.h"
4520 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4521 calling convention.
4522 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4523 IBM OpenCL vector types calling convention.
4524 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4525 (ppc_sysv_abi_broken_return_value): Likewise.
4526 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4527 types calling convention.
4528 (ppc64_sysv_abi_return_value): Likewise.
4529 * spu-tdep.c: Include "dwarf2.h"
4530 (spu_return_value): Implement IBM OpenCL vector types calling
4531 convention.
4532
45332011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4534
4535 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4536 correct ABI for AltiVec vector arguments.
4537
45382011-02-07 Pedro Alves <pedro@codesourcery.com>
4539
4540 * valprint.c (val_print): Extend comment.
4541 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4542 interface explanation to val_print.
4543 (ada_val_print_array): Adjust comment to current interface.
4544 (print_field_values): Adjust comment to current interface.
4545 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4546 explanation to val_print.
4547 * f-valprint.c (f_val_print): Ditto.
4548 * jv-valprint.c (java_val_print): Ditto.
4549 * m2-valprint.c (m2_val_print): Ditto.
4550 * p-valprint.c (pascal_val_print): Ditto.
4551
45522011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4553
4554 * breakpoint.c (parse_breakpoint_sals): Fix description.
4555
45562011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4557 Oguz Kayral <oguzkayral@gmail.com>
4558
4559 * python/py-inferior.c (python_on_normal_stop): New function.
4560 (python_on_resume): New function.
4561 (python_inferior_exit): New function.
4562 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4563 inferior_exit observers.
4564 * python/py-evtregistry.c: New file.
4565 * python/py-threadevent.c : New file.
4566 * python/py-event.c: New file.
4567 * python/py-evts.c: New file.
4568 * python/py-continueevent.c: New file.
4569 * python/py-bpevent.c: New file.
4570 * python/py-signalevent.c: New file.
4571 * python/py-exetiedevent.c: New file.
4572 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4573 Move struct breakpoint_object from here...
4574 * python/python-internal.h: ... to here.
4575 * python/py-event.h: New file.
4576 * python/py-events.h: New file.
4577 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4578 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4579 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4580 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4581 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4582 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4583 Add build rules for all the above.
4584
45852011-02-04 Tom Tromey <tromey@redhat.com>
4586
4587 * dwarf2read.c (dwarf2_section_empty_p): New function.
4588 (dwarf2_read_section): Use dwarf2_section_empty_p.
4589 (dwarf2_section_size): New function.
4590 (dwarf2_get_section_info): Unconditionally read section.
4591 (dwarf2_read_index): Use dwarf2_section_empty_p.
4592 (partial_read_comp_unit_head): Use dwarf2_section_size.
4593 (dwarf2_symbol_mark_computed): Likewise.
4594
45952011-02-04 David Daney <ddaney@caviumnetworks.com>
4596
4597 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4598
45992011-02-04 David Daney <ddaney@caviumnetworks.com>
4600
4601 * mips-linux-tdep.c: Include xml-syscall.h.
4602 (mips_linux_get_syscall_number): New function.
4603 (mips_linux_init_abi): Add calls to
4604 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4605 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4606 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4607 * syscalls/mips-n32-linux.xml: New file.
4608 * syscalls/mips-n64-linux.xml: New file.
4609 * syscalls/mips-o32-linux.xml: New file.
4610
46112011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4612
4613 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4614 Complain about inverted range entries.
4615 (dwarf2_record_block_ranges): Likewise.
4616
46172011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4618
4619 Fix some typos.
4620 * breakpoint.c (update_watchpoint): Fix name of the
4621 update_global_location_list function.
4622 (print_one_breakpoint): Fix typo.
4623 (_initialize_breakpoint): Remove extra space in hbreak help
4624 string.
4625 * breakpoint.h (struct bp_location) <length>: Fix field
4626 description.
4627
46282011-02-04 Pedro Alves <pedro@codesourcery.com>
4629
4630 * regcache.c (registers_changed_ptid): Don't explictly always
4631 clear `current_regcache'. Only clear current_thread_ptid and
4632 current_thread_arch when PTID matches. Only reinit the frame
4633 cache if PTID matches the current inferior_ptid. Move alloca(0)
4634 call to ...
4635 (registers_changed): ... here.
4636
46372011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4638
4639 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4640 starts with __stack_chk_guard as stack guard symbol.
4641
46422011-02-03 Andrew Burgess <aburgess@broadcom.com>
4643
4644 * disasm.c (compare_lines): Handle the end of sequence markers
4645 within the line table to better support disassembling over
4646 compilation unit boundaries.
4647
46482011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4649
4650 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4651 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4652 implementation even if no symbols are available.
4653 (thumb_analyze_prologue): Update call to skip_prologue_function.
4654 (arm_analyze_prologue): Likewise.
4655
46562011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4657
4658 * arm-tdep.c: Include "observer.h".
4659 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4660 (arm_exidx_data_key): New static variable.
4661 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4662 (struct arm_exidx_data): Likewise.
4663 (arm_exidx_data_free): New function.
4664 (arm_compare_exidx_entries): Likewise.
4665 (arm_obj_section_from_vma): Likewise.
4666 (arm_exidx_new_objfile): Likewise.
4667 (arm_find_exidx_entry): Likewise.
4668 (arm_exidx_fill_cache): Likewise.
4669 (arm_exidx_unwind_sniffer): Likewise.
4670 (arm_exidx_unwind): New global variable.
4671 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4672 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4673 observer. Register arm_exidx_data_key as objfile data.
4674
46752011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4676
4677 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4678 due to accessing uninitialized variable. Fix indentation.
4679
46802011-02-02 Pedro Alves <pedro@codesourcery.com>
4681
4682 * c-valprint.c (c_value_print): When doing virtual base pointer
4683 adjustment, create a new value with adjusted contents rather than
4684 changing the contents of the value being printed (and getting it
4685 wrong).
4686
46872011-02-02 Pedro Alves <pedro@codesourcery.com>
4688
4689 * xml-support.c (xml_find_attribute): New.
4690 (xinclude_start_include): Use it.
4691 * xml-support.h (xml_find_attribute): Declare.
4692 * memory-map.c (memory_map_start_memory)
4693 (memory_map_start_property): Use xml_find_attribute.
4694 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4695 xml_find_attribute.
4696 * remote.c (start_thread): Use xml_find_attribute.
4697 * solib-target.c (library_list_start_segment)
4698 (library_list_start_section, library_list_start_library)
4699 (library_list_start_list): Use xml_find_attribute.
4700 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4701 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4702 (tdesc_start_field): Use xml_find_attribute.
4703
47042011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4705
4706 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4707 (BUILD_OCL_VTYPES): Update.
4708
47092011-02-02 Joel Brobecker <brobecker@adacore.com>
4710
4711 * configure.ac: Work around non-GNU sed limitation when computing
4712 python version number.
4713 * configure: Regenerate.
4714
47152011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4716
4717 Fix debug printing of TYPE_INSTANCE.
4718 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4719 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4720
47212011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4724 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4725 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4726 * ada-operator.inc: Rename the file to ...
4727 * ada-operator.def: ... here, wrap all the entries by macro OP.
4728 * expprint.c (op_name_standard): Remove all the entries. Include
4729 "std-operator.def" instead.
4730 * expression.h (enum exp_opcode): Include "std-operator.def" and
4731 "ada-operator.def". Move all the entries ...
4732 * std-operator.def: ... here, wrap all the entries by macro OP.
4733
47342011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4735
4736 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4737 * breakpoint.c (remove_jit_event_breakpoints): New function.
4738 * jit.c (jit_descriptor_addr): Delete.
4739 (registering_code): Delete.
4740 (clear_int): Delete.
4741 (jit_inferior_data): New variable.
4742 (struct jit_inferior_data): New type.
4743 (get_jit_inferior_data): New function.
4744 (jit_inferior_data_cleanup): New function.
4745 (jit_read_descriptor): Adjust.
4746 (jit_register_code): Adjust.
4747 (jit_breakpoint_re_set_internal): New function; move code here ...
4748 (jit_inferior_init): ... from here.
4749 (jit_breakpoint_re_set): Adjust.
4750 (jit_reset_inferior_data_and_breakpoints): New function.
4751 (jit_inferior_created_observer): Adjust.
4752 (jit_inferior_exit_hook): Adjust.
4753 (jit_executable_changed_observer): New function.
4754 (jit_event_handler): Adjust.
4755 (_initialize_jit): Adjust.
4756
47572011-01-31 Michael Snyder <msnyder@vmware.com>
4758
4759 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4760 line.
4761
47622011-01-31 Tom Tromey <tromey@redhat.com>
4763
4764 PR python/12216:
4765 * python/python.c (execute_gdb_command): Call
4766 prevent_dont_repeat.
4767 * top.c (suppress_dont_repeat): New global.
4768 (dont_repeat): Use it.
4769 (prevent_dont_repeat): New function.
4770 * command.h (prevent_dont_repeat): Declare.
4771
47722011-01-31 Tom Tromey <tromey@redhat.com>
4773
4774 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4775 * python/py-breakpoint.c (bppy_set_silent): Use
4776 breakpoint_set_silent.
4777 (bppy_set_thread): Use breakpoint_set_thread.
4778 (bppy_set_task): Use breakpoint_set_task.
4779 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4780 (breakpoint_set_task): Declare.
4781 (make_breakpoint_silent): Remove.
4782 * breakpoint.c (breakpoint_set_silent): New function.
4783 (breakpoint_set_thread): Likewise.
4784 (breakpoint_set_task): Likewise.
4785 (make_breakpoint_silent): Remove.
4786
47872011-01-31 Tom Tromey <tromey@redhat.com>
4788
4789 * breakpoint.h (user_breakpoint_p): Declare.
4790 * breakpoint.c (user_breakpoint_p): New function.
4791 (breakpoint_1): Use it.
4792 (save_breakpoints): Likewise.
4793
47942011-01-31 Joel Brobecker <brobecker@adacore.com>
4795
4796 * configure.ac: Add handling of Python distribution on Windows.
4797 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4798 sysconfig variables are not defined, then do not use them.
4799 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4800 instead. On Windows, return all paths using forward-slashes
4801 rather than backslashes.
4802
48032011-01-31 Joel Brobecker <brobecker@adacore.com>
4804
4805 * configure.ac: Remove fallback behavior for building
4806 against Python. Remove tweaking of Python include path.
4807 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4808 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4809 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4810 Always restore CPPFLAGS and LIBS after linking test.
4811 * configure: Regenerated.
4812 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4813 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4814 * python/python-internal.h: Adjust includes of Python .h files.
4815
48162011-01-31 Joel Brobecker <brobecker@adacore.com>
4817
4818 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4819 in error message.
4820
48212011-01-31 Joel Brobecker <brobecker@adacore.com>
4822
4823 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4824 value test.
4825
48262011-01-31 Yao Qi <yao@codesourcery.com>
4827
4828 * arm-linux-nat.c: Update calls to regcache_register_status
4829 instead of regcache_valid_p.
4830 * aix-thread.c: Likewise.
4831 * i386gnu-nat.c: Likewise.
4832
48332011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4834
4835 Fix crash.
4836 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4837 touching TYPE_FIELD_ARTIFICIAL.
4838
48392011-01-28 Richard Earnshaw <rearnsha@arm.com>
4840
4841 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4842 Committers.
4843
48442011-01-28 Pedro Alves <pedro@codesourcery.com>
4845
4846 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4847 selected, don't try iterating over the traceframe's blocks.
4848 (tfile_has_stack): If there's no traceframe selected, then there's
4849 no stack.
4850 (tfile_has_registers): If there's no traceframe selected, then
4851 there's no registers.
4852
48532011-01-28 Pedro Alves <pedro@codesourcery.com>
4854
4855 * target.c (memory_xfer_partial): No need to restore shadows if we
4856 haven't read anything.
4857
48582011-01-28 Pedro Alves <pedro@codesourcery.com>
4859
4860 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4861 and val_print_scalar_formatted.
4862
48632011-01-27 Pedro Alves <pedro@codesourcery.com>
4864
4865 * tracepoint.c (tfile_read): New.
4866 (tfile_open): Use it.
4867 (tfile_get_traceframe_address): Use it.
4868 (tfile_trace_find): Use it.
4869 (walk_blocks_callback_func): New typedef.
4870 (match_blocktype): New function.
4871 (traceframe_walk_blocks): New function.
4872 (traceframe_find_block_type): New function.
4873 (tfile_fetch_registers, tfile_xfer_partial)
4874 (tfile_get_trace_state_variable_value): Use
4875 traceframe_find_block_type and tfile_read.
4876
48772011-01-26 Kevin Buettner <kevinb@redhat.com>
4878
4879 * remote-mips.c: Add internationalization mark ups. Remove
4880 trailing \n from already marked up strings.
4881
48822011-01-26 Tom Tromey <tromey@redhat.com>
4883
4884 * python/py-prettyprint.c (print_string_repr): Clear
4885 'addressprint' option when calling val_print_string.
4886 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4887 option when calling val_print_string.
4888
48892011-01-26 Tom Tromey <tromey@redhat.com>
4890
4891 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4892 GDB_PY_LL_ARG.
4893 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4894 macros.
4895 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4896 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4897 (gdb_py_long_as_ulongest): New defines.
4898 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4899 (gdb_py_int_as_long): Declare.
4900 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4901 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4902 (valpy_long): Add comment.
4903 * python/py-utils.c (get_addr_from_python): Use
4904 gdb_py_long_as_ulongest. Handle overflow properly.
4905 (gdb_py_object_from_longest): New function.
4906 (gdb_py_object_from_ulongest): Likewise.
4907 (gdb_py_int_as_long): Likewise.
4908 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4909 * python/py-symtab.c (salpy_get_pc): Use
4910 gdb_py_long_from_ulongest.
4911 (salpy_get_line): Use PyInt_FromLong.
4912 * python/py-param.c (set_parameter_value): Use
4913 gdb_py_int_as_long.
4914 * python/py-lazy-string.c (stpy_get_address): Use
4915 gdb_py_long_from_ulongest.
4916 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4917 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4918 * python/py-breakpoint.c (bppy_set_thread): Use
4919 gdb_py_int_as_long.
4920 (bppy_set_task): Likewise.
4921 (bppy_set_ignore_count): Likewise.
4922 (bppy_set_hit_count): Likewise.
4923 * python/py-block.c (blpy_get_start): Use
4924 gdb_py_object_from_ulongest.
4925 (blpy_get_end): Likewise.
4926 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4927
49282011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4929
4930 PR/symtab 11766:
4931 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4932 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4933 equality test for objfile, initialize addr_low if needed.
4934
49352011-01-25 Pedro Alves <pedro@codesourcery.com>
4936
4937 * tui/tui-regs.c (tui_register_format): Remove dead code.
4938
49392011-01-25 Pedro Alves <pedro@codesourcery.com>
4940
4941 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4942 instead of print_scalar_formatted.
4943 (print_scalar_formatted): Don't handle 's' format strings here,
4944 and add an assertion that we never see such format here.
4945 * valprint.h (val_print_scalar_formatted): Declare.
4946 * valprint.c (val_print_scalar_formatted): New.
4947 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4948 instead of print_scalar_formatted.
4949 * jv-valprint.c (java_val_print): Ditto.
4950 * p-valprint.c (pascal_val_print): Ditto.
4951 * ada-valprint.c (ada_val_print_1): Ditto.
4952 * f-valprint.c (f_val_print): Ditto.
4953 * infcmd.c (registers_info): Ditto.
4954 * m2-valprint.c (m2_val_print): Ditto.
4955
49562011-01-25 Pedro Alves <pedro@codesourcery.com>
4957
4958 * m2-valprint.c (print_unbounded_array): Pass
4959 value_contents_for_printing rather than value_contents, to
4960 m2_print_array_contents. Also pass in the value.
4961
49622011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4963
4964 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4965 (save_gdb_index_command): Switch to .gdb_index version 4.
4966
49672011-01-25 Pedro Alves <pedro@codesourcery.com>
4968
4969 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4970 than frame_register, and always pass a valid value to val_print.
4971
49722011-01-25 Pedro Alves <pedro@codesourcery.com>
4973
4974 Centralize printing "<optimized out>".
4975
4976 * valprint.h (val_print_optimized_out): Declare.
4977 * cp-valprint.c (cp_print_value_fields): Use
4978 val_print_optimized_out.
4979 * jv-valprint.c (java_print_value_fields): Ditto.
4980 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4981 * printcmd.c (print_formatted): Ditto.
4982 * valprint.c (valprint_check_validity): Ditto.
4983 (value_check_printable): Ditto.
4984 (val_print_optimized_out): New.
4985
49862011-01-25 Pedro Alves <pedro@codesourcery.com>
4987
4988 * infcmd.c (default_print_registers_info): Allocate values so to
4989 never pass a NULL value to val_print.
4990
49912011-01-25 Pedro Alves <pedro@codesourcery.com>
4992
4993 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4994 boolean. Make sure to always pass a value that matches the
4995 contents buffer to callees. Preserve `address' for following
4996 iterations.
4997 * value.c (value_contents_for_printing_const): New.
4998 (value_address): Constify value argument.
4999 * value.h (value_contents_for_printing_const): Declare.
5000 (value_address): Constify value argument.
5001
50022011-01-25 Pedro Alves <pedro@codesourcery.com>
5003
5004 * regcache.c (struct regcache_descr): Rename
5005 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5006 and sizeof_cooked_register_valid_p to
5007 sizeof_cooked_register_status.
5008 (init_regcache_descr): Adjust.
5009 (struct regcache): Rename register_valid_p field to
5010 register_status.
5011 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5012 (do_cooked_read): Adjust.
5013 (regcache_valid_p): Rename to ...
5014 (regcache_register_status): ... this. Adjust.
5015 (regcache_invalidate): Adjust.
5016 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5017 Adjust.
5018 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5019 as unavailable, not valid.
5020 (regcache_dump): Adjust.
5021 * regcache.h (enum register_status): New.
5022 (regcache_register_status): Declare.
5023 (regcache_invalidate): Delete declaration.
5024 * corelow.c (get_core_registers): Adjust.
5025 * tracepoint.c (tfile_fetch_registers): Adjust.
5026 * trad-frame.c (REG_VALUE): Rename to ...
5027 (TF_REG_VALUE): ... this.
5028 (REG_UNKNOWN): Rename to ...
5029 (TF_REG_UNKNOWN): ... this.
5030 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5031 * mi/mi-main.c (register_changed_p): Adjust.
5032
50332011-01-25 Pedro Alves <pedro@codesourcery.com>
5034
5035 * regcache.c (struct regcache_descr): Remove outdated comment.
5036 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5037 overallocate hack.
5038 (regcache_xmalloc): Rename to ...
5039 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5040 Allocate the regcache type accordingly.
5041 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5042 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5043 cooked registers, not raw.
5044 (regcache_dup_no_passthrough): Delete.
5045 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5046 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5047 mention obsolete write_register_bytes.
5048 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5049
50502011-01-25 Pedro Alves <pedro@codesourcery.com>
5051
5052 Stop remote_read_bytes from handling partial reads itself.
5053
5054 * remote-fileio.c: Include target.h.
5055 (remote_fileio_write_bytes): Delete.
5056 (remote_fileio_func_open, remote_fileio_func_write)
5057 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5058 target_read_memory.
5059 (remote_fileio_func_stat): Use target_read_memory and
5060 target_write_memory.
5061 (remote_fileio_func_gettimeofday): Use target_write_memory.
5062 (remote_fileio_func_system): Use target_read_memory.
5063 * remote.c (remote_write_bytes): Make it static.
5064 (remote_read_bytes): Don't handle partial reads here.
5065 * remote.h (remote_read_bytes): Delete declaration.
5066
50672011-01-25 Pedro Alves <pedro@codesourcery.com>
5068
5069 Simplify XML parsing a bit.
5070
5071 * xml-support.h (gdb_xml_parse_quick): Declare.
5072 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5073 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5074 parameter.
5075 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5076 gdb_xml_create_parser_and_cleanup_1.
5077 (gdb_xml_parse_quick): New.
5078 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5079 * osdata.c (osdata_parse): Ditto.
5080 * remote.c (remote_threads_info): Ditto.
5081 * solib-target.c (solib_target_parse_libraries): Ditto.
5082 * xml-syscall.c (syscall_parse_xml): Ditto.
5083 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5084
50852011-01-24 Kevin Buettner <kevinb@redhat.com>
5086
5087 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5088 with remote-mips.o added to gdb_target_obs.
5089 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5090
50912011-01-24 Pedro Alves <pedro@codesourcery.com>
5092
5093 * ada-valprint.c (val_print_packed_array_elements): Pass the
5094 correct struct value to val_print.
5095 (ada_val_print_1): Ditto.
5096
50972011-01-24 Pedro Alves <pedro@codesourcery.com>
5098
5099 Don't lose embedded_offset in printing routines throughout.
5100
5101 * valprint.h (val_print_array_elements): Change prototype.
5102 * valprint.c (val_print_array_elements): Add `embedded_offset'
5103 parameter, and adjust to pass it down to val_print, while passing
5104 `valaddr' or `address' unmodified. Take embedded_offset into
5105 account when checking repetitions.
5106 * c-valprint.c (c_val_print): Pass embedded_offset to
5107 val_print_array_elements instead of adjusting `valaddr' and
5108 `address'.
5109 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5110 embedded_offset to val_print_array_elements instead of adjusting
5111 `valaddr'.
5112 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5113 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5114 val_print_array_elements and pascal_object_print_value_fields
5115 instead of adjusting `valaddr'.
5116 (pascal_object_print_value_fields): Add `offset' parameter, and
5117 adjust to use it.
5118 (pascal_object_print_value): Add `offset' parameter, and adjust to
5119 use it.
5120 (pascal_object_print_static_field): Use
5121 value_contents_for_printing/value_embedded_offset, rather than
5122 value_contents.
5123 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5124 parameter, and adjust to use it. Use
5125 value_contents_for_printing/value_embedded_offset, rather than
5126 value_contents.
5127 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5128 (ada_val_print_array): Add `offset' parameter, and adjust to use
5129 it.
5130 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5131 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5132 Instead work with offsets. Use
5133 value_contents_for_printing/value_embedded_offset, rather than
5134 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5135 and use value_from_pointer to extract a target pointer, rather
5136 than value_from_longest.
5137 (print_variant_part): Add `offset' parameter. Replace
5138 `outer_valaddr' parameter by a new `outer_offset' parameter.
5139 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5140 (ada_value_print): Use
5141 value_contents_for_printing/value_embedded_offset, rather than
5142 value_contents.
5143 (print_record): Add `offset' parameter, and adjust to pass it
5144 down.
5145 (print_field_values): Add `offset' parameter. Replace
5146 `outer_valaddr' parameter by a new `outer_offset' parameter.
5147 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5148 Use value_contents_for_printing/value_embedded_offset, rather than
5149 value_contents.
5150 * d-valprint.c (dynamic_array_type): Use
5151 value_contents_for_printing/value_embedded_offset, rather than
5152 value_contents.
5153 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5154 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5155 (java_print_value_fields): Take `offset' into account. Don't
5156 re-adjust `valaddr'. Instead pass down adjusted offsets.
5157 (java_val_print): Take `embedded_offset' into account. Pass it to
5158 java_print_value_fields.
5159 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5160 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5161 down adjusted offsets.
5162 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5163 (f_val_print): Take `embedded_offset' into account.
5164
51652011-01-21 Joel Brobecker <brobecker@adacore.com>
5166
5167 * inflow.c: Include "gdbcmd.h".
5168 (interactive_mode): New static global, moved here from top.c.
5169 (show_interactive_mode): New function, moved here from top.c.
5170 use gdb_has_a_terminal instead of input_from_terminal_p to
5171 determine the current mode.
5172 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5173 setting.
5174 (_initialize_inflow): Add the "set/show interactive-mode"
5175 commands. Moved here from top.c, after having adjusted slightly
5176 the help text.
5177 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5178 to inflow.c.
5179 (input_from_terminal_p): Remove handling of "interactive-mode"
5180 setting, moved to infow.c.
5181 (init_main): Remove creation of the "set/show interactive-mode"
5182 commands, moved to inflow.c.
5183
51842011-01-19 Joel Brobecker <brobecker@adacore.com>
5185
5186 * NEWS: Add entry for native ia64-hpux support.
5187
51882011-01-19 Tom Tromey <tromey@redhat.com>
5189
5190 PR mi/8618:
5191 * thread.c (free_thread): Free 'name'.
5192 (print_thread_info): Emit thread name. Change CLI output.
5193 (thread_name_command): New function.
5194 (do_captured_thread_select): Emit newline.
5195 (_initialize_thread): Register 'thread name' command.
5196 * target.h (struct target_ops) <to_thread_name>: New field.
5197 (target_thread_name): New macro.
5198 * target.c (update_current_target): Handle to_thread_name.
5199 * python/py-infthread.c (thpy_get_name): New function.
5200 (thpy_set_name): Likewise.
5201 (thread_object_getset): Add "name".
5202 * linux-nat.c (linux_nat_thread_name): New function.
5203 (linux_nat_add_target): Set to_thread_name.
5204 * gdbthread.h (struct thread_info) <name>: New field.
5205
52062011-01-18 Joel Brobecker <brobecker@adacore.com>
5207
5208 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5209 (ada_val_print_1): Likewise.
5210
52112011-01-18 Joel Brobecker <brobecker@adacore.com>
5212
5213 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5214 upper limit address is not greater than the function end address
5215 when the upper limit could not be computed using the debugging
5216 info.
5217
52182011-01-17 Tom Tromey <tromey@redhat.com>
5219
5220 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5221 get_regcomp_error.
5222 * utils.c: Include gdb_regex.h.
5223 (do_regfree_cleanup): New function.
5224 (make_regfree_cleanup): Likewise.
5225 (get_regcomp_error): Likewise.
5226 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5227
52282011-01-17 Tom Tromey <tromey@redhat.com>
5229
5230 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5231 re_compile_fastmap.
5232
52332011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5234
5235 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5236 for internal variables.
5237 (last_was_structop): New static variable.
5238 (COMPLETE): New token.
5239 (field_exp): New rule to group all '.' suffix handling.
5240 Add mark_struct_expression calls when approriate to be able
5241 to correctly find fields for completion.
5242 (yylex): Adapt to handle field completion and set INTVAR when
5243 required.
5244
52452011-01-14 Yao Qi <yao@codesourcery.com>
5246
5247 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5248 save_reggroup, restore_reggroup and all_reggroup.
5249
52502011-01-14 Joel Brobecker <brobecker@adacore.com>
5251
5252 * ada-valprint. (ada_printchar): Use the correct type length
5253 in call to ada_emit_char.
5254 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5255
52562011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5257
5258 * solib-som.h (hpux_major_release): Declare variable here.
5259 * solib-som.c: Remove <sys/utsname.h> header.
5260 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5261 (hpux_major_release): Make global, change default value to
5262 DEFAULT_HPUX_MAJOR_RELEASE.
5263 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5264 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5265 Add "solib-som.h" header.
5266 (set_hpux_major_release): New function.
5267 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5268
52692011-01-14 Mike Frysinger <vapier@gentoo.org>
5270
5271 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5272
52732011-01-14 Joel Brobecker <brobecker@adacore.com>
5274
5275 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5276 new-line at end of warning message.
5277 (ia64_hpux_store_register): Remove trailing new-line at end of
5278 error message.
5279 * ia64-hpux-tdep.c: Rephrase comment.
5280 * solib-ia64-hpux.c (struct dld_info): Change type of field
5281 dld_flags from "long long" to ULONGEST.
5282
52832011-01-14 Pedro Alves <pedro@codesourcery.com>
5284
5285 * target.h (deprecated_child_ops): Delete declaration.
5286 * target.c (deprecated_child_ops): Delete definition.
5287
52882011-01-14 Pedro Alves <pedro@codesourcery.com>
5289
5290 * Makefile.in (hpux-thread.o): Delete rule.
5291 * configure.ac: Don't check for HPUX DCE threads support.
5292 * configure, config.in: Regenerate.
5293 * hppa-hpux-nat.c (child_suppress_run): Delete.
5294 (hppa_hpux_child_can_run): Delete.
5295 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5296 * hpux-thread.c: Delete.
5297
52982011-01-13 Joel Brobecker <brobecker@adacore.com>
5299
5300 * hpux-thread.c (hpux_pid_to_str): Delete.
5301
53022011-01-13 Joel Brobecker <brobecker@adacore.com>
5303
5304 * ada-valprint.c (ada_emit_char): Remove strange code.
5305 Check that c is <= UCHAR_MAX before passing it to isascii.
5306 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5307
53082011-01-13 Joel Brobecker <brobecker@adacore.com>
5309
5310 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5311 to the case where instream is stdin.
5312
53132011-01-13 Joel Brobecker <brobecker@adacore.com>
5314
5315 * ia64-tdep.h (struct regcache): Forward declare.
5316 (struct ia64_infcall_ops): New struct type.
5317 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5318 and "infcall_ops".
5319 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5320 Renames ia64_find_global_pointer.
5321 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5322 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5323 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5324 methods.
5325 (ia64_infcall_ops): New static global constant.
5326 (ia64_gdbarch_init): Set tdep->infcall_ops.
5327 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5328 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5329 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5330 (ia64_hpux_dummy_code): New static global constant.
5331 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5332 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5333 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5334 New function.
5335 (ia64_hpux_infcall_ops): New static global constant.
5336 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5337 for inferior function calls to work properly on ia64-hpux.
5338
53392011-01-13 Joel Brobecker <brobecker@adacore.com>
5340
5341 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5342 * ia64-tdep.h (struct frame_info): forward declaration.
5343 (struct gdbarch_tdep): Add field size_of_register_frame.
5344 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5345 to determine the size of the register frame.
5346 (ia64_size_of_register_frame): New function.
5347 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5348 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5349 (IA64_HPUX_UREG_REASON): New macro.
5350 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5351 New functions.
5352 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5353 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5354 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5355 objects.
5356
53572011-01-13 Joel Brobecker <brobecker@adacore.com>
5358
5359 Add support for ia64-hpux.
5360 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5361 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5362
5363 * configure.host: Add handling for ia64-hpux hosts. Add associated
5364 floatformats.
5365 * configure.tgt: Add handling for ia64-hpux targets.
5366 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5367 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5368 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5369
53702011-01-13 Joel Brobecker <brobecker@adacore.com>
5371
5372 [ttrace] Compute thread list immediately after attach.
5373 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5374 New subprogram.
5375 (inf_ttrace_attach): Use it.
5376
53772011-01-13 Joel Brobecker <brobecker@adacore.com>
5378
5379 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5380 if we could not determine the frame's function address. Instead,
5381 use the frame's PC, and then continue.
5382
53832011-01-13 Joel Brobecker <brobecker@adacore.com>
5384
5385 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5386 not already defined.
5387
53882011-01-13 Joel Brobecker <brobecker@adacore.com>
5389
5390 * ia64-tdep.c (ia64_struct_type_p): New function.
5391 (ia64_extract_return_value): Handle integral values that are
5392 less than 8 bytes long.
5393 (ia64_push_dummy_call): Likewise.
5394
53952011-01-13 Joel Brobecker <brobecker@adacore.com>
5396
5397 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5398 floatformat_ia64_ext.
5399 (floatformat_ia64_ext_big): New static const.
5400 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5401
54022011-01-12 Tom Tromey <tromey@redhat.com>
5403
5404 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5405 messages.
5406 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5407 (mi_cmd_thread_list_ids): Likewise.
5408 (mi_cmd_data_list_changed_registers): Likewise.
5409 (mi_cmd_data_list_register_values): Likewise.
5410 (mi_cmd_data_write_register_values): Likewise.
5411 (mi_cmd_data_evaluate_expression): Likewise.
5412 (mi_cmd_data_read_memory): Likewise.
5413 (mi_cmd_data_read_memory_bytes): Likewise.
5414 (mi_cmd_data_write_memory): Likewise.
5415 (mi_cmd_enable_timings): Likewise.
5416 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5417 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5418 (mi_cmd_var_delete): Likewise.
5419 (mi_cmd_var_set_format): Likewise.
5420 (mi_cmd_var_show_format): Likewise.
5421 (mi_cmd_var_info_num_children): Likewise.
5422 (mi_cmd_var_list_children): Likewise.
5423 (mi_cmd_var_info_type): Likewise.
5424 (mi_cmd_var_info_expression): Likewise.
5425 (mi_cmd_var_show_attributes): Likewise.
5426 (mi_cmd_var_assign): Likewise.
5427 (mi_cmd_var_update): Likewise.
5428 (mi_cmd_enable_pretty_printing): Likewise.
5429 (mi_cmd_var_set_update_range): Likewise.
5430 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5431 messages.
5432 (mi_cmd_target_file_put): Likewise.
5433 (mi_cmd_target_file_delete): Likewise.
5434 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5435 messages.
5436 (mi_cmd_stack_info_depth): Likewise.
5437 (mi_cmd_stack_list_locals): Likewise.
5438 (mi_cmd_stack_list_args): Likewise.
5439 (mi_cmd_stack_select_frame): Likewise.
5440 (mi_cmd_stack_select_frame): Likewise.
5441 (mi_cmd_stack_info_frame): Likewise.
5442 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5443 messages.
5444 (mi_cmd_file_list_exec_source_files): Likewise.
5445 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5446 (mi_cmd_env_cd): Likewise.
5447 (mi_cmd_env_path): Likewise.
5448 (mi_cmd_env_dir): Likewise.
5449 (mi_cmd_inferior_tty_show): Likewise.
5450 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5451 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5452 (mi_cmd_break_watch): Likewise.
5453
54542011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5455
5456 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5457 (ppc_linux_insert_hw_breakpoint): Likewise.
5458 (ppc_linux_remove_hw_breakpoint): Likewise.
5459 (ppc_linux_insert_watchpoint): Likewise.
5460
54612011-01-12 Andrew Burgess <aburgess@broadcom.com>
5462 Jan Kratochvil <jan.kratochvil@redhat.com>
5463
5464 PR fortran/11104 and DWARF unbound arrays detection.
5465 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5466 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5467 unspecified upper bound.
5468 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5469 variables array_size_array, tmp_type and offset_item. New variable
5470 array. Remove call to f77_get_upperbound. New variables array_type
5471 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5472 the final call to deprecated_set_value_type.
5473
54742011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5475
5476 Make value allocations more lazy.
5477 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5478 instead of allocate_value and set_value_lazy when possible.
5479 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5480 instead of allocate_value and set_value_lazy.
5481 * findvar.c (value_of_register_lazy): Likewise.
5482 (read_var_value): Remove V preallocation, call just check_typedef in
5483 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5484 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5485 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5486 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5487 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5488 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5489 the end, remove set_value_lazy there.
5490 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5491 instead of allocate_value and set_value_lazy when possible.
5492 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5493 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5494 of allocate_value and set_value_lazy.
5495 (value_from_contents_and_address): Use allocate_value_lazy instead of
5496 allocate_value and set_value_lazy when possible.
5497
54982011-01-12 Andrew Burgess <aburgess@broadcom.com>
5499
5500 * disasm.c (dump_insns): Support dumping opcodes for MI.
5501 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5502 dumping of instruction opcodes.
5503
55042011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5505
5506 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5507 appropiately.
5508
55092011-01-11 Tom Tromey <tromey@redhat.com>
5510
5511 * thread.c (do_captured_thread_select): Emit newline before
5512 printing frame.
5513
55142011-01-11 Michael Snyder <msnyder@vmware.com>
5515
5516 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5517 * score-tdep.c: Ditto.
5518 * score-tdep.h: Ditto.
5519 * ser-base.c: Ditto.
5520 * ser-go32.c: Ditto.
5521 * serial.c: Ditto.
5522 * serial.h: Ditto.
5523 * ser-mingw.c: Ditto.
5524 * ser-pipe.c: Ditto.
5525 * ser-tcp.c: Ditto.
5526 * ser-unix.c: Ditto.
5527 * sh64-tdep.c: Ditto.
5528 * shnbsd-nat.c: Ditto.
5529 * sh-tdep.c: Ditto.
5530 * sh-tdep.h: Ditto.
5531 * solib.c: Ditto.
5532 * solib-darwin.c: Ditto.
5533 * solib-frv.c: Ditto.
5534 * solib.h: Ditto.
5535 * solib-irix.c: Ditto.
5536 * solib-osf.c: Ditto.
5537 * solib-pa64.c: Ditto.
5538 * solib-som.c: Ditto.
5539 * solib-spu.c: Ditto.
5540 * solib-sunos.c: Ditto.
5541 * solib-svr4.c: Ditto.
5542 * solist.h: Ditto.
5543 * sol-thread.c: Ditto.
5544 * somread.c: Ditto.
5545 * source.c: Ditto.
5546 * source.h: Ditto.
5547 * sparc64-linux-tdep.c: Ditto.
5548 * sparc64-tdep.c: Ditto.
5549 * sparc-linux-nat.c: Ditto.
5550 * sparc-linux-tdep.c: Ditto.
5551 * sparc-sol2-nat.c: Ditto.
5552 * sparc-sol2-tdep.c: Ditto.
5553 * sparc-tdep.c: Ditto.
5554 * sparc-tdep.h: Ditto.
5555 * spu-tdep.c: Ditto.
5556 * stabsread.c: Ditto.
5557 * stabsread.h: Ditto.
5558 * stack.c: Ditto.
5559 * symfile.c: Ditto.
5560 * symfile.h: Ditto.
5561 * symmisc.c: Ditto.
5562 * symtab.c: Ditto.
5563 * symtab.h: Ditto.
5564 * target.c: Ditto.
5565 * target-descriptions.c: Ditto.
5566 * target-descriptions.h: Ditto.
5567 * target.h: Ditto.
5568 * target-memory.c: Ditto.
5569 * terminal.h: Ditto.
5570 * thread.c: Ditto.
5571 * top.c: Ditto.
5572 * tracepoint.c: Ditto.
5573 * tracepoint.h: Ditto.
5574 * trad-frame.h: Ditto.
5575 * typeprint.c: Ditto.
5576
55772011-01-11 Michael Snyder <msnyder@vmware.com>
5578
5579 * ui-file.c: Comment cleanup, mostly periods and spaces.
5580 * ui-file.h: Ditto.
5581 * ui-out.c: Ditto.
5582 * ui-out.h: Ditto.
5583 * utils.c: Ditto.
5584 * v850-tdep.c: Ditto.
5585 * valarith.c: Ditto.
5586 * valops.c: Ditto.
5587 * valprint.c: Ditto.
5588 * valprint.h: Ditto.
5589 * value.c: Ditto.
5590 * value.h: Ditto.
5591 * varobj.c: Ditto.
5592 * varobj.h: Ditto.
5593 * vax-tdep.c: Ditto.
5594 * vec.c: Ditto.
5595 * vec.h: Ditto.
5596 * version.h: Ditto.
5597 * windows-nat.c: Ditto.
5598 * windows-tdep.c: Ditto.
5599 * xcoffread.c: Ditto.
5600 * xcoffsolib.c: Ditto.
5601 * xml-support.c: Ditto.
5602 * xstormy16-tdep.c: Ditto.
5603 * xtensa-tdep.c: Ditto.
5604 * xtensa-tdep.h: Ditto.
5605
56062011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5607
5608 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5609 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5610
56112011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5612 Thiago Jung Bauermann <bauerman@br.ibm.com>
5613
5614 Implement support for PowerPC BookE ranged watchpoints.
5615 * breakpoint.h
5616 (struct breakpoint_ops) <resources_needed>: New method.
5617 Initialize to NULL in all existing breakpoint_ops instances.
5618 (struct breakpoint) <exact>: New field.
5619 (target_exact_watchpoints): Declare external global.
5620 * breakpoint.c (target_exact_watchpoints): New global flag.
5621 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5622 b->enable_state to bp_enabled before calling
5623 hw_watchpoint_used_count.
5624 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5625 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5626 if available.
5627 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5628 if the watchpoint is exact.
5629 (resources_needed_watchpoint): New function.
5630 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5631 (watch_command_1): Set b->exact if the user asked for an exact
5632 watchpoint and one can be set.
5633 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5634 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5635 the user asks for an exact watchpoint and one can be set. Return
5636 number of needed debug registers to watch the expression.
5637 * gdbtypes.c (is_scalar_type): New function, based on
5638 valprint.c:scalar_type_p.
5639 (is_scalar_type_recursive): New function.
5640 * gdbtypes.h (is_scalar_type_recursive): Declare.
5641 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5642 handle regions when ranged watchpoints are available.
5643 (create_watchpoint_request): New function.
5644 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5645 create_watchpoint_request.
5646 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5647 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5648 `set powerpc' and `show powerpc' commands.
5649 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5650 Mention documentation comment in the target macro.
5651 (target_region_ok_for_hw_watchpoint): Document return value.
5652
56532011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5654
5655 * breakpoint.c (update_watchpoint): Decide on using a software or
5656 hardware watchpoint after the bp_locations are created.
5657
56582010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5659
5660 Convert hardware watchpoints to use breakpoint_ops.
5661 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5662 <insert_location>: ... this. Return int instead of void.
5663 Accept pointer to struct bp_location instead of pointer to
5664 struct breakpoint. Adapt all implementations.
5665 (breakpoint_ops) <remove>: Rename to...
5666 <remove_location>: ... this. Accept pointer to struct bp_location
5667 instead of pointer to struct breakpoint. Adapt all implementations.
5668 * breakpoint.c (insert_catchpoint): Delete function.
5669 (insert_bp_location): Call the watchpoint or catchpoint's
5670 breakpoint_ops.insert method.
5671 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5672 breakpoint_ops.remove method.
5673 (insert_watchpoint, remove_watchpoint): New functions.
5674 (watchpoint_breakpoint_ops): New structure.
5675 (watch_command_1): Initialize the OPS field.
5676 * inf-child.c (inf_child_insert_fork_catchpoint)
5677 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5678 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5679 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5680 Delete functions.
5681 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5682 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5683 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5684 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5685 * target.c (update_current_target): Change default implementation of
5686 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5687 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5688 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5689 to_set_syscall_catchpoint to return_one.
5690 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5691 (debug_to_insert_exec_catchpoint): Report return value.
5692 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5693 (to_insert_exec_catchpoint): Change declaration to return int instead
5694 of void.
5695
56962011-01-11 Michael Snyder <msnyder@vmware.com>
5697
5698 * arm-tdep.c: Internationalization.
5699 * c-lang.c: Ditto.
5700 * charset.c: Ditto.
5701 * fork-child.c: Ditto.
5702 * nto-procfs.c: Ditto.
5703 * ppc-sysv-tdep.c: Ditto.
5704 * procfs.c: Ditto.
5705 * remote-mips.c: Ditto.
5706 * remote.c: Ditto.
5707 * rs6000-nat.c: Ditto.
5708 * rs6000-tdep.c: Ditto.
5709 * target.c: Ditto.
5710 * valops.c: Ditto.
5711 * value.c: Ditto.
5712 * xml-support.c: Ditto.
5713 * mi/mi-cmd-break.c: Ditto.
5714 * mi/mi-cmd-var.c: Ditto.
5715 * mi/mi-interp.c: Ditto.
5716 * mi/mi-main.c: Ditto.
5717
57182011-01-11 Andrew Burgess <aburgess@broadcom.com>
5719
5720 * remote-sim.c (gdbsim_store_register): Update API to
5721 sim_store_register to check more error conditions.
5722
57232011-01-10 Michael Snyder <msnyder@vmware.com>
5724
5725 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5726 * nto-tdep.c: Ditto.
5727 * nto-tdep.h: Ditto.
5728 * objc-exp.y: Ditto.
5729 * objc-lang.c: Ditto.
5730 * objfiles.c: Ditto.
5731 * objfiles.h: Ditto.
5732 * observer.c: Ditto.
5733 * opencl-lang.c: Ditto.
5734 * osabi.c: Ditto.
5735 * parse.c: Ditto.
5736 * parser-defs.h: Ditto.
5737 * p-exp.y: Ditto.
5738 * p-lang.c: Ditto.
5739 * posix-hdep.c: Ditto.
5740 * ppcbug-rom.c: Ditto.
5741 * ppc-linux-nat.c: Ditto.
5742 * ppc-linux-tdep.c: Ditto.
5743 * ppc-linux-tdep.h: Ditto.
5744 * ppcnbsd-tdep.c: Ditto.
5745 * ppcobsd-tdep.c: Ditto.
5746 * ppcobsd-tdep.h: Ditto.
5747 * ppc-sysv-tdep.c: Ditto.
5748 * ppc-tdep.h: Ditto.
5749 * printcmd.c: Ditto.
5750 * proc-abi.c: Ditto.
5751 * proc-flags.c: Ditto.
5752 * procfs.c: Ditto.
5753 * proc-utils.h: Ditto.
5754 * progspace.h: Ditto.
5755 * prologue-value.c: Ditto.
5756 * prologue-value.h: Ditto.
5757 * psympriv.h: Ditto.
5758 * psymtab.c: Ditto.
5759 * p-typeprint.c: Ditto.
5760 * p-valprint.c: Ditto.
5761 * ravenscar-sparc-thread.c: Ditto.
5762 * ravenscar-thread.c: Ditto.
5763 * ravenscar-thread.h: Ditto.
5764 * record.c: Ditto.
5765 * regcache.c: Ditto.
5766 * regcache.h: Ditto.
5767 * remote.c: Ditto.
5768 * remote-fileio.c: Ditto.
5769 * remote-fileio.h: Ditto.
5770 * remote.h: Ditto.
5771 * remote-m32r-sdi.c: Ditto.
5772 * remote-mips.c: Ditto.
5773 * remote-sim.c: Ditto.
5774 * rs6000-aix-tdep.c: Ditto.
5775 * rs6000-nat.c: Ditto.
5776 * rs6000-tdep.c: Ditto.
5777
57782011-01-10 Michael Snyder <msnyder@vmware.com>
5779
5780 * charset.c (validate): Internationalization.
5781 * coffread.c (read_one_sym): Ditto.
5782 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5783 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5784 * inflow.c (new_tty): Ditto.
5785 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5786 * m32c-tdep.c (m32c_return_value): Ditto.
5787 * mep-tdep.c (mep_store_return_value): Ditto.
5788 * score-tdep.c (score7_fetch_insn): Ditto.
5789 * ser-mingw.c (pipe_windows_open): Ditto.
5790 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5791 * spu-tdep.c (spu_register_type): Ditto.
5792 * tracepoint.c (trace_find_command): Ditto.
5793 * valarith.c (value_pos): Ditto.
5794
57952011-01-10 Joel Brobecker <brobecker@adacore.com>
5796
5797 * ada-valprint.c (printstr): Minor comment reformatting.
5798
57992011-01-08 Michael Snyder <msnyder@vmware.com>
5800
5801 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5802 markup.
5803
58042011-01-08 Michael Snyder <msnyder@vmware.com>
5805
5806 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5807 * hppa-hpux-tdep.c: Ditto.
5808 * hppa-linux-nat.c: Ditto.
5809 * hppa-linux-tdep.c: Ditto.
5810 * hppanbsd-tdep.c: Ditto.
5811 * hppa-tdep.c: Ditto.
5812 * hppa-tdep.h: Ditto.
5813 * hpux-thread.c: Ditto.
5814 * i386-cygwin-tdep.c: Ditto.
5815 * i386-darwin-nat.c: Ditto.
5816 * i386gnu-nat.c: Ditto.
5817 * i386-linux-nat.c: Ditto.
5818 * i386-linux-tdep.c: Ditto.
5819 * i386-nat.c: Ditto.
5820 * i386-nat.h: Ditto.
5821 * i386nbsd-tdep.c: Ditto.
5822 * i386-sol2-nat.c: Ditto.
5823 * i386-stub.c: Ditto.
5824 * i386-tdep.c: Ditto.
5825 * i386-tdep.h: Ditto.
5826 * i387-tdep.c: Ditto.
5827 * ia64-linux-nat.c: Ditto.
5828 * ia64-linux-tdep.c: Ditto.
5829 * ia64-tdep.c: Ditto.
5830 * infcall.c: Ditto.
5831 * infcall.h: Ditto.
5832 * infcmd.c: Ditto.
5833 * inferior.c: Ditto.
5834 * inferior.h: Ditto.
5835 * infloop.c: Ditto.
5836 * inflow.c: Ditto.
5837 * infrun.c: Ditto.
5838 * interps.c: Ditto.
5839 * interps.h: Ditto.
5840 * iq2000-tdep.c: Ditto.
5841 * irix5-nat.c: Ditto.
5842 * jit.c: Ditto.
5843 * jit.h: Ditto.
5844 * jv-exp.y: Ditto.
5845 * jv-lang.c: Ditto.
5846 * jv-lang.h: Ditto.
5847 * jv-typeprint.c: Ditto.
5848 * jv-valprint.c: Ditto.
5849 * language.c: Ditto.
5850 * language.h: Ditto.
5851 * linespec.c: Ditto.
5852 * linux-fork.c: Ditto.
5853 * linux-nat.c: Ditto.
5854 * linux-thread-db.c: Ditto.
5855 * lm32-tdep.c: Ditto.
5856
58572011-01-08 Michael Snyder <msnyder@vmware.com>
5858
5859 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5860 * m2-lang.c: Ditto.
5861 * m2-typeprint.c: Ditto.
5862 * m2-valprint.c: Ditto.
5863 * m32c-tdep.c: Ditto.
5864 * m32r-linux-nat.c: Ditto.
5865 * m32r-rom.c: Ditto.
5866 * m32r-tdep.c: Ditto.
5867 * m32r-tdep.h: Ditto.
5868 * m68hc11-tdep.c: Ditto.
5869 * m58klinux-nat.c: Ditto.
5870 * m68k-tdep.c: Ditto.
5871 * m88k-tdep.c: Ditto.
5872 * m88k-tdep.h: Ditto.
5873 * machoread.c: Ditto.
5874 * macrocmd.c: Ditto.
5875 * macroexp.c: Ditto.
5876 * macrotab.c: Ditto.
5877 * main.c: Ditto.
5878 * maint.c: Ditto.
5879 * mdebugread.c: Ditto.
5880 * mdebugread.h: Ditto.
5881 * memattr.c: Ditto.
5882 * memattr.h: Ditto.
5883 * memory-map.h: Ditto.
5884 * mep-tdep.c: Ditto.
5885 * microblaze-rom.c: Ditto.
5886 * microblaze-tdep.c: Ditto.
5887 * minsyms.c: Ditto.
5888 * mips-irix-tdep.c: Ditto.
5889 * mips-linux-nat.c: Ditto.
5890 * mips-linux-tdep.c: Ditto.
5891 * mips-linux-tdep.h: Ditto.
5892 * mipsnbsd-nat.c: Ditto.
5893 * mipsnbsd-tdep.c: Ditto.
5894 * mipsread.c: Ditto.
5895 * mips-tdep.c: Ditto.
5896 * mips-tdep.h: Ditto.
5897 * mn10300-linux-tdep.c: Ditto.
5898 * mn10300-tdep.c: Ditto.
5899 * mn10300-tdep.h: Ditto.
5900 * monitor.c: Ditto.
5901 * monitor.h: Ditto.
5902 * moxie-tdep.c: Ditto.
5903 * moxie-tdep.h: Ditto.
5904 * mt-tdep.c: Ditto.
5905
59062011-01-08 Mike Frysinger <vapier@gentoo.org>
5907
5908 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5909
59102011-01-08 Robert Millan <rmh@gnu.org>
5911
5912 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5913
59142011-01-07 Michael Snyder <msnyder@vmware.com>
5915
5916 * charset.c (_initialize_charset): Fix typo in string.
5917
59182011-01-07 Michael Snyder <msnyder@vmware.com>
5919
5920 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5921 for i18n.
5922 * tui/tui-layout.c (tui_set_layout_for_display_command):
5923 Split line so that operator goes to beginning of line.
5924 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5925 assignment out of if statement.
5926
59272011-01-07 Michael Snyder <msnyder@vmware.com>
5928
5929 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5930 * ada-lang.h: Ditto.
5931 * ada-tasks.c: Ditto.
5932 * ada-valprint.c: Ditto.
5933 * aix-threads.c: Ditto.
5934 * alpha-linux-nat.c: Ditto.
5935 * alpha-linux-tdep.c: Ditto.
5936 * alpha-mdebug-tdep.c: Ditto.
5937 * alpha-nat.c: Ditto.
5938 * alpha-osf1-tdep.c: Ditto.
5939 * alpha-tdep.c: Ditto.
5940 * alphabsd-nat.c: Ditto.
5941 * alphabsd-tdep.c: Ditto.
5942 * amd64-darwin-tdep.c: Ditto.
5943 * amd64-linux-nat.c: Ditto.
5944 * amd64-linux-tdep.c: Ditto.
5945 * amd64-sol2-tdep.c: Ditto.
5946 * amd64-tdep.c: Ditto.
5947 * amd64-fbsd-tdep.c: Ditto.
5948 * amd64-nbsd-tdep.c: Ditto.
5949 * amd64-obsd-tdep.c: Ditto.
5950 * amd64-linux-nat.c: Ditto.
5951 * amd64-linux-tdep.c: Ditto.
5952 * arm-tdep.c: Ditto.
5953 * arm-tdep.h: Ditto.
5954 * armnbsd-nat.c: Ditto.
5955 * avr-tdep.c: Ditto.
5956 * bfin-tdep.c: Ditto.
5957 * bsd-kvm.c: Ditto.
5958 * c-typeprintc: Ditto.
5959 * c-valprint.c: Ditto.
5960 * coff-pe-read.h: Ditto.
5961 * coffreead.c: Ditto.
5962 * cris-tdep.c: Ditto.
5963 * d-lang.c: Ditto.
5964 * darwin-nat-info.c: Ditto.
5965 * darwin-nat.c: Ditto.
5966 * dbug-rom.c: Ditto.
5967 * dbxread.c: Ditto.
5968 * dcache.c: Ditto.
5969 * dcache.h: Ditto.
5970 * dec-thread.c: Ditto.
5971 * defs.h: Ditto.
5972 * demangle.c: Ditto.
5973 * dicos-tdep.c: Ditto.
5974 * dictionary.c: Ditto.
5975 * dictionary.h: Ditto.
5976 * dink32-rom.c: Ditto.
5977 * disasm.c: Ditto.
5978 * doublest.c: Ditto.
5979 * dsrec.c: Ditto.
5980 * dummy-frame.c: Ditto.
5981 * dwarf2-frame.c: Ditto.
5982 * dwarf2expr.c: Ditto.
5983 * dwarf2loc.c: Ditto.
5984 * dwarf2read.c: Ditto.
5985 * elfread.c: Ditto.
5986 * environ.c: Ditto.
5987 * eval.c: Ditto.
5988 * event-top.h: Ditto.
5989 * exceptions.c: Ditto.
5990 * exceptions.h: Ditto.
5991 * exec.c: Ditto.
5992 * expprint.c: Ditto.
5993 * expression.h: Ditto.
5994 * f-exp.y: Ditto.
5995 * f-lang.c: Ditto.
5996 * f-lang.h: Ditto.
5997 * f-typeprint.c: Ditto.
5998 * f-valprint.c: Ditto.
5999 * fbsd-nat.c: Ditto.
6000 * findvar.c: Ditto.
6001 * fork-child.c: Ditto.
6002 * frame.c: Ditto.
6003 * frame.h: Ditto.
6004 * frv-linux-tdep.c: Ditto.
6005 * frv-tdep.c: Ditto.
6006 * gcore.c: Ditto.
6007 * gdb-stabs.h: Ditto.
6008 * gdb_assert.h: Ditto.
6009 * gdb_string.h: Ditto.
6010 * gdb_thread_db.h: Ditto.
6011 * gdb_wait.h: Ditto.
6012 * gdbarch.sh: Ditto.
6013 * gdbcore.h: Ditto.
6014 * gdbthread.h: Ditto.
6015 * gdbtypes.c: Ditto.
6016 * gdbtypes.h: Ditto.
6017 * gnu-nat.c: Ditto.
6018 * gnu-nat.h: Ditto.
6019 * gnu-v2-abi.c: Ditto.
6020 * gnu-v3-abi.c: Ditto.
6021 * go32-nat.c: Ditto.
6022 * gdbarch.c: Regenerate.
6023 * gdbarch.h: Regenerate.
6024
60252011-01-07 Michael Snyder <msnyder@vmware.com>
6026
6027 * ax-gdb.c: Adjust some long output strings.
6028 * breakpoint.c: Ditto.
6029 * charset.c: Ditto.
6030 * cp-abi.c: Ditto.
6031 * infcall.c: Ditto.
6032 * infrun.c: Ditto.
6033 * linux-nat.c: Ditto.
6034 * solib-pa64.c: Ditto.
6035 * solib-som.c: Ditto.
6036
60372011-01-06 Tom Tromey <tromey@redhat.com>
6038
6039 PR python/12367:
6040 * NEWS: Add item.
6041 * python/python.c (GdbMethods): Add "newest_frame" method.
6042 * python/python-internal.h (gdbpy_newest_frame): Declare.
6043 * python/py-frame.c (gdbpy_newest_frame): New function.
6044
60452010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6046
6047 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6048 * jit.c (jit_debug): New variable.
6049 (show_jit_debug): New function.
6050 (struct target_buffer): Use ULONGEST.
6051 (bfd_open_from_target_memory): Likewise.
6052 (jit_register_code, jit_inferior_init): Add debug output.
6053 (_initialize_jit): Register "debug jit" command.
6054
60552011-01-06 Tom Tromey <tromey@redhat.com>
6056
6057 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6058 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6059 and ARCH_FRAME.
6060
60612011-01-06 Tom Tromey <tromey@redhat.com>
6062
6063 * python/py-frame.c (frapy_block): Use get_frame_block.
6064
60652011-01-06 Joel Brobecker <brobecker@adacore.com>
6066
6067 Do not stop on SIGPRIO signals by default
6068 * infrun.c (_initialize_infrun): Unset signal_stop and
6069 signal_print for TARGET_SIGNAL_PRIO.
6070
60712011-01-06 Joel Brobecker <brobecker@adacore.com>
6072
6073 * ada-tasks.c: Fix style violation in comment.
6074
60752011-01-06 Joel Brobecker <brobecker@adacore.com>
6076
6077 * linespec.c (decode_compound, find_method): Remove trailing \n
6078 at end of error string.
6079 * solib-irix.c (irix_current_sos): Likewise.
6080 * varobj.c (uninstall_variable): Likewise.
6081
60822011-01-06 Joel Brobecker <brobecker@adacore.com>
6083
6084 * copyright.py: New script.
6085 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6086 Launch emacs without exec'ing. Call copyright.py afterwards.
6087
60882011-01-05 Michael Snyder <msnyder@vmware.com>
6089
6090 * addrmap.c: Shorten lines of >= 80 columns.
6091 * arch-utils.c: Ditto.
6092 * arch-utils.h: Ditto.
6093 * ax-gdb.c: Ditto.
6094 * ax-general.c: Ditto.
6095 * bcache.c: Ditto.
6096 * blockframe.c: Ditto.
6097 * breakpoint.c: Ditto.
6098 * buildsym.c: Ditto.
6099 * c-lang.c: Ditto.
6100 * c-typeprint.c: Ditto.
6101 * charset.c: Ditto.
6102 * coffread.c: Ditto.
6103 * command.h: Ditto.
6104 * corelow.c: Ditto.
6105 * cp-abi.c: Ditto.
6106 * cp-namespace.c: Ditto.
6107 * cp-support.c: Ditto.
6108 * dbug-rom.c: Ditto.
6109 * dbxread.c: Ditto.
6110 * defs.h: Ditto.
6111 * dfp.c: Ditto.
6112 * dfp.h: Ditto.
6113 * dictionary.c: Ditto.
6114 * disasm.c: Ditto.
6115 * doublest.c: Ditto.
6116 * dwarf2-frame.c: Ditto.
6117 * dwarf2expr.c: Ditto.
6118 * dwarf2loc.c: Ditto.
6119 * dwarf2read.c: Ditto.
6120 * elfread.c: Ditto.
6121 * eval.c: Ditto.
6122 * event-loop.c: Ditto.
6123 * event-loop.h: Ditto.
6124 * exceptions.h: Ditto.
6125 * exec.c: Ditto.
6126 * expprint.c: Ditto.
6127 * expression.h: Ditto.
6128 * f-lang.c: Ditto.
6129 * f-valprint.c: Ditto.
6130 * findcmd.c: Ditto.
6131 * frame-base.c: Ditto.
6132 * frame-unwind.c: Ditto.
6133 * frame-unwind.h: Ditto.
6134 * frame.c: Ditto.
6135 * frame.h: Ditto.
6136 * gcore.c: Ditto.
6137 * gdb-stabs.h: Ditto.
6138 * gdb_assert.h: Ditto.
6139 * gdb_dirent.h: Ditto.
6140 * gdb_obstack.h: Ditto.
6141 * gdbcore.h: Ditto.
6142 * gdbtypes.c: Ditto.
6143 * gdbtypes.h: Ditto.
6144 * inf-ttrace.c: Ditto.
6145 * infcall.c: Ditto.
6146 * infcmd.c: Ditto.
6147 * inflow.c: Ditto.
6148 * infrun.c: Ditto.
6149 * inline-frame.h: Ditto.
6150 * language.c: Ditto.
6151 * language.h: Ditto.
6152 * libunwind-frame.c: Ditto.
6153 * libunwind-frame.h: Ditto.
6154 * linespec.c: Ditto.
6155 * linux-nat.c: Ditto.
6156 * linux-nat.h: Ditto.
6157 * linux-thread-db.c: Ditto.
6158 * machoread.c: Ditto.
6159 * macroexp.c: Ditto.
6160 * macrotab.c: Ditto.
6161 * main.c: Ditto.
6162 * maint.c: Ditto.
6163 * mdebugread.c: Ditto.
6164 * memattr.c: Ditto.
6165 * minsyms.c: Ditto.
6166 * monitor.c: Ditto.
6167 * monitor.h: Ditto.
6168 * objfiles.c: Ditto.
6169 * objfiles.h: Ditto.
6170 * osabi.c: Ditto.
6171 * p-typeprint.c: Ditto.
6172 * p-valprint.c: Ditto.
6173 * parse.c: Ditto.
6174 * printcmd.c: Ditto.
6175 * proc-events.c: Ditto.
6176 * procfs.c: Ditto.
6177 * progspace.c: Ditto.
6178 * progspace.h: Ditto.
6179 * psympriv.h: Ditto.
6180 * psymtab.c: Ditto.
6181 * record.c: Ditto.
6182 * regcache.c: Ditto.
6183 * regcache.h: Ditto.
6184 * remote-fileio.c: Ditto.
6185 * remote.c: Ditto.
6186 * ser-mingw.c: Ditto.
6187 * ser-tcp.c: Ditto.
6188 * ser-unix.c: Ditto.
6189 * serial.c: Ditto.
6190 * serial.h: Ditto.
6191 * solib-frv.c: Ditto.
6192 * solib-irix.c: Ditto.
6193 * solib-osf.c: Ditto.
6194 * solib-pa64.c: Ditto.
6195 * solib-som.c: Ditto.
6196 * solib-sunos.c: Ditto.
6197 * solib-svr4.c: Ditto.
6198 * solib-target.c: Ditto.
6199 * solib.c: Ditto.
6200 * somread.c: Ditto.
6201 * source.c: Ditto.
6202 * stabsread.c: Ditto.
6203 * stabsread.c: Ditto.
6204 * stack.c: Ditto.
6205 * stack.h: Ditto.
6206 * symfile-mem.c: Ditto.
6207 * symfile.c: Ditto.
6208 * symfile.h: Ditto.
6209 * symmisc.c: Ditto.
6210 * symtab.c: Ditto.
6211 * symtab.h: Ditto.
6212 * target-descriptions.c: Ditto.
6213 * target-memory.c: Ditto.
6214 * target.c: Ditto.
6215 * target.h: Ditto.
6216 * terminal.h: Ditto.
6217 * thread.c: Ditto.
6218 * top.c: Ditto.
6219 * tracepoint.c: Ditto.
6220 * tracepoint.h: Ditto.
6221 * ui-file.c: Ditto.
6222 * ui-file.h: Ditto.
6223 * ui-out.h: Ditto.
6224 * user-regs.c: Ditto.
6225 * user-regs.h: Ditto.
6226 * utils.c: Ditto.
6227 * valarith.c: Ditto.
6228 * valops.c: Ditto.
6229 * valprint.c: Ditto.
6230 * valprint.h: Ditto.
6231 * value.c: Ditto.
6232 * varobj.c: Ditto.
6233 * varobj.h: Ditto.
6234 * vec.h: Ditto.
6235 * xcoffread.c: Ditto.
6236 * xcoffsolib.c: Ditto.
6237 * xcoffsolib.h: Ditto.
6238 * xml-syscall.c: Ditto.
6239 * xml-tdesc.c: Ditto.
6240
62412011-01-05 Michael Snyder <msnyder@vmware.com>
6242
6243 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6244 * cli/cli-decode.c: Ditto.
6245 * cli/cli-dump.c: Ditto.
6246 * cli/cli-logging.c: Ditto.
6247 * cli/cli-script.c: Ditto.
6248 * cli/cli-setshow.c: Ditto.
6249 * common/signals.c: Ditto.
6250 * mi/mi-cmd-break.c: Ditto.
6251 * mi/mi-cmd-disas.c: Ditto.
6252 * mi/mi-cmd-stack.c: Ditto.
6253 * mi/mi-cmd-var.c: Ditto.
6254 * mi/mi-cmds.c: Ditto.
6255 * mi/mi-common.h: Ditto.
6256 * mi/mi-console.c: Ditto.
6257 * mi/mi-interp.c: Ditto.
6258 * mi/mi-main.c: Ditto.
6259 * osf-share/cma_attr.c: Ditto.
6260 * osf-share/cma_deb_core.h: Ditto.
6261 * osf-share/cma_debug_client.h: Ditto.
6262 * osf-share/cma_handle.h: Ditto.
6263 * osf-share/cma_mutex.h: Ditto.
6264 * osf-share/cma_stack_int.h: Ditto.
6265 * osf-share/cma_tcb_defs.h: Ditto.
6266 * python/py-auto-load.c: Ditto.
6267 * python/py-breakpoint.c: Ditto.
6268 * python/py-cmd.c: Ditto.
6269 * python/py-frame.c: Ditto.
6270 * python/py-objfile.c: Ditto.
6271 * python/py-param.c: Ditto.
6272 * python/py-progspace.c: Ditto.
6273 * python/py-symbol.c: Ditto.
6274 * python/py-value.c: Ditto.
6275 * python/python-internal.h: Ditto.
6276 * python/python.c: Ditto.
6277 * tui/tui-data.c: Ditto.
6278 * tui/tui-disasm.c: Ditto.
6279 * tui/tui-hooks.c: Ditto.
6280 * tui/tui-io.c: Ditto.
6281 * tui/tui-layout.c: Ditto.
6282 * tui/tui-regs.c: Ditto.
6283 * tui/tui-source.c: Ditto.
6284 * tui/tui-stack.c: Ditto.
6285 * tui/tui-win.c: Ditto.
6286 * tui/tui-windata.c: Ditto.
6287 * tui/tui-winsource.c: Ditto.
6288
62892011-01-05 Joel Brobecker <brobecker@adacore.com>
6290
6291 * configure.ac, gdb.1: Copyright year update.
6292
62932011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6294
6295 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6296 this_pc_in_block, morestack_msym and morestack_name. Check for
6297 "__morestack" minimal symbol there.
6298
62992011-01-03 Joel Brobecker <brobecker@adacore.com>
6300
6301 * symfile.c (find_sym_fns): Add call to dont_repeat.
6302
63032011-01-01 Joel Brobecker <brobecker@adacore.com>
6304
6305 Copyright year update in most files (performed by copyright.sh).
6306
63072011-01-01 Joel Brobecker <brobecker@adacore.com>
6308
6309 * top.c (print_gdb_version): Update copyright year in version output.
6310
6311For older changes see ChangeLog-2010.
6312\f
6313Local Variables:
6314mode: change-log
6315left-margin: 8
6316fill-column: 74
6317version-control: never
6318coding: utf-8
6319End:
This page took 0.044206 seconds and 4 git commands to generate.