* contrib/excheck.py: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-28 Tom Tromey <tromey@redhat.com>
2
3 * contrib/excheck.py: New file.
4 * contrib/exsummary.py: New file.
5 * contrib/gcc-with-excheck: New file.
6
7 2013-02-28 Tom Tromey <tromey@redhat.com>
8
9 * python/python.c (gdbpy_print_stack): Call begin_line and
10 fprintf_filtered inside TRY_CATCH.
11
12 2013-02-28 Tom Tromey <tromey@redhat.com>
13
14 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
15 inside TRY_CATCH.
16
17 2013-02-28 Tom Tromey <tromey@redhat.com>
18
19 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
20 frame_object_to_frame_info inside TRY_CATCH.
21
22 2013-02-28 Tom Tromey <tromey@redhat.com>
23
24 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
25 TRY_CATCH.
26
27 2013-02-28 Tom Tromey <tromey@redhat.com>
28
29 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
30
31 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
32
33 * windows-nat.c: Throughout, fix format strings and casts of
34 printf-like functions to avoid type related warnings on all
35 platforms.
36 (handle_output_debug_string): Fetch context information address
37 from debug string using string_to_core_addr.
38
39 2013-02-27 Jiong Wang <jiwang@tilera.com>
40
41 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
42 * regformats/reg-tilegx32.dat: New.
43
44 2013-02-27 Jiong Wang <jiwang@tilera.com>
45
46 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
47
48 2013-02-27 Jiong Wang <jiwang@tilera.com>
49
50 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
51
52 2013-02-27 Yao Qi <yao@codesourcery.com>
53 Pedro Alves <palves@redhat.com>
54
55 * tracepoint.c (tfile_trace_find): For tfind
56 pc/tp/range/outside, look for the next trace frame instead of
57 always starting from frame 0.
58
59 2013-02-26 Anthony Green <green@moxielogic.com>
60
61 * configure.tgt: Add support for moxie-*-rtems* target.
62
63 2013-02-25 Pedro Alves <palves@redhat.com>
64
65 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
66 warning text.
67
68 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
69
70 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
71 if $fp is used as the virtual frame pointer.
72
73 2013-02-23 Alan Modra <amodra@gmail.com>
74
75 * elfread.c (elf_symtab_read): Do not use udata.p here to find
76 symbol size.
77 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
78 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
79 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
80 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
81
82 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
83
84 Code cleanup.
85 * elfread.c (build_id_bfd_get): Make the return type const.
86 (build_id_verify): Make the check parameter const.
87 (build_id_to_debug_filename): Make the build_id parameter and variable
88 data const.
89 (find_separate_debug_file_by_buildid): Make the variable build_id const.
90
91 2013-02-21 Alan Modra <amodra@gmail.com>
92
93 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
94
95 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
96
97 Add a new method 'disassemble' to gdb.Architecture class.
98 * python/py-arch.c (archpy_disassmble): Implementation of the
99 new method gdb.Architecture.disassemble.
100 (arch_object_methods): Add entry for the new method.
101
102 2013-02-20 Jiong Wang <jiwang@tilera.com>
103
104 * MAINTAINERS (Write After Approval): Add myself to the list.
105
106 2013-02-19 Pedro Alves <palves@redhat.com>
107
108 Garbage collect 'struct monitor_ops'::load_routine.
109
110 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
111 * monitor.c (monitor_load): No longer call
112 current_monitor->load_routine.
113 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
114 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
115 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
116
117 2013-02-19 Pedro Alves <palves@redhat.com>
118
119 PR gdb/15161
120
121 Harmonize with generic_load.
122
123 * monitor.c: Include "readline/readline.h".
124 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
125 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
126 long/strtol for the 'load_offset' local. Error out if no argument
127 is given or if too many arguments are given. Tilde expand the
128 passed in file name.
129
130 2013-02-19 Kai Tietz <ktietz@redhat.com>
131
132 PR gdb/15161
133 * symfile.c (load_section_data): Change type of load_offset
134 to CORE_ADDR.
135 (generic_load): User strtoulst instead of strtoul for conversion
136 of load_offset.
137
138 2013-02-19 Jiong Wang <jiwang@tilera.com>
139
140 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
141 for return address, "lr" register, saved on stack.
142 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
143 after we invoke tilegx_analyze_prologue.
144
145 2013-02-19 Jiong Wang <jiwang@tilera.com>
146
147 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
148
149 2013-02-19 Jiong Wang <jiwang@tilera.com>
150
151 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
152
153 2013-02-19 Jiong Wang <jiwang@tilera.com>
154
155 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
156 (tilegx_write_pc): New function.
157 (tilegx_cannot_reference_register): Return zero if REGNO
158 is TILEGX_FAULTNUM_REGNUM.
159 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
160 (tilegx_register_name): Add handling of "faultnum" register.
161 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
162 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
163 handling of TILEGX_FAULTNUM_REGNUM.
164 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
165
166 2013-02-19 Jiong Wang <jiwang@tilera.com>
167
168 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
169 should be aligned to 64bit.
170
171 2013-02-19 Kai Tietz <ktietz@redhat.com>
172
173 * windows-nat.c (windows_xfer_memory): Fix debug-output
174 for LLP64.
175
176 2013-02-19 Lei Liu <lei.liu2@windriver.com>
177
178 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
179 Don't check DSP register number if HAVE_DSP is not set.
180
181 2013-02-19 Alan Modra <amodra@gmail.com>
182
183 * elfread.c (struct build_id): Delete. Use struct elf_build_id
184 throughout file instead.
185 (build_id_bfd_get): Update to use new elf_tdata build_id field.
186 Don't xmalloc return value.
187 (build_id_verify): Similarly. Don't xfree.
188 (build_id_to_debug_filename): Update.
189 (find_separate_debug_file_by_buildid): Update, don't xfree.
190
191 2013-02-18 Tom Tromey <tromey@redhat.com>
192
193 PR gdb/15102:
194 * dwarf2read.c (read_subrange_type): Use result of
195 'check_typedef'.
196
197 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
198
199 * frame.c: Remove one extra white space after #include
200 directive.
201
202 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
203
204 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
205
206 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
207
208 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
209 and dir commands into an if block.
210
211 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
212
213 * python/py-breakpoint (struct pybp_code): Use int instead of
214 enum type_code.
215
216 2013-02-15 Pedro Alves <pedro@codesourcery.com>
217 Hafiz Abid Qadeer <abidh@codesourcery.com>
218
219 * NEWS: Mention new field "trace-file".
220 * tracepoint.c (trace_status_mi): Output "trace-file" field.
221 (tfile_open): Record the trace file's filename in the trace
222 status.
223 (tfile_files_info): Mention the name of the trace file.
224 Check the "filename" field explicitely.
225 (trace_status_command): Explicitely check "filename" field.
226 (trace_find_command): Ditto.
227 (trace_find_pc_command): Ditto.
228 (trace_find_tracepoint_command): Ditto.
229 (trace_find_line_command): Ditto.
230 (trace_find_range_command): Ditto.
231 (trace_find_outside_command): Ditto.
232 * tracepoint.h (struct trace_status) <from_file>: Rename it
233 to "filename" and make it hold the trace file's filename
234 instead of a boolean.
235 * remote.c (remote_get_trace_status): Initialize "filename"
236 field with NULL instead of 0.
237
238 2013-02-15 Yao Qi <yao@codesourcery.com>
239
240 * remote.c: Fix a typo.
241
242 2013-02-14 Pierre Muller <muller@sourceware.org>
243
244 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
245
246 2013-02-14 Pedro Alves <palves@redhat.com>
247
248 * utils.c (savestring): Don't #undef it. Move function to
249 common/common-utils.c.
250 * common/common-utils.c: Include gdb_string.h.
251 (savestring): Move here from utils.c.
252 * common/common-utils.h (savestring): Declare.
253
254 2013-02-14 Pedro Alves <palves@redhat.com>
255
256 * utils.c (savestring): Rename parameter 'size' to 'len'.
257
258 2013-02-14 Pedro Alves <palves@redhat.com>
259 Yufeng Zhang <yufeng.zhang@arm.com>
260
261 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
262 (aarch64_inferior_data, struct aarch64_inferior_data):
263 Delete.
264 (struct aarch64_process_info): New.
265 (aarch64_process_list): New global.
266 (aarch64_find_process_pid, aarch64_add_process)
267 (aarch64_process_info_get): New functions.
268 (aarch64_inferior_data_get): Delete.
269 (aarch64_process_info_get): New function.
270 (aarch64_forget_process): New function.
271 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
272 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
273 aarch64_get_debug_reg_state.
274 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
275 instead of linux_nat_iterate_watchpoint_lwps.
276 (aarch64_linux_new_fork): New function.
277 (aarch64_linux_child_post_startup_inferior): Use
278 aarch64_forget_process instead of aarch64_init_debug_reg_state.
279 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
280 (aarch64_linux_remove_hw_breakpoint)
281 (aarch64_handle_aligned_watchpoint)
282 (aarch64_handle_unaligned_watchpoint)
283 (aarch64_linux_insert_watchpoint)
284 (aarch64_linux_remove_watchpoint)
285 (aarch64_linux_stopped_data_address): Adjust to pass the current
286 process id to aarch64_debug_reg_state.
287 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
288 linux_nat_new_fork hook, and aarch64_forget_process as
289 linux_nat_forget_process hook; remove the call to
290 register_inferior_data_with_cleanup.
291
292 2013-02-14 Pedro Alves <palves@redhat.com>
293
294 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
295 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
296 lval_memory.
297
298 2013-02-14 Pedro Alves <pedro@codesourcery.com>
299 Hafiz Abid Qadeer <abidh@codesourcery.com>
300
301 * tracepoint.h (validate_trace_state_variable_name): Declare.
302 * tracepoint.c (validate_trace_state_variable_name): New.
303 (trace_variable_command): Parse the trace state variable's name
304 without using parse_expression. Do several validations.
305 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
306 trace state variable's name with parse_expression. Validate it.
307
308 2013-02-14 Yao Qi <yao@codesourcery.com>
309
310 * infcmd.c (breakpoint_proceeded): Remove it.
311
312 2013-02-14 Yao Qi <yao@codesourcery.com>
313
314 * tracepoint.c (end_actions_pseudocommand): Make it static.
315 (while_stepping_pseudocommand): Likewise.
316 * tracepoint.h (end_actions_pseudocommand): Remove the
317 declaration.
318 (while_stepping_pseudocommand): Likewise.
319
320 2013-02-14 Yao Qi <yao@codesourcery.com>
321
322 * cli/cli-decode.c (help_cmd): Remove the declaration of
323 "cmdlist".
324 (help_all): Likewise.
325
326 2013-02-13 Pedro Alves <palves@redhat.com>
327
328 * amd64-linux-nat.c (update_debug_registers_callback):
329 Update comment.
330 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
331 iterate_over_lwps.
332 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
333 i386_debug_reg_state.
334 (amd64_linux_new_fork): New function.
335 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
336 linux_nat_new_fork hook, and i386_forget_process as
337 linux_nat_forget_process hook.
338 * i386-linux-nat.c (update_debug_registers_callback):
339 Update comment.
340 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
341 iterate_over_lwps.
342 (i386_linux_prepare_to_resume): Pass the lwp's pid to
343 i386_debug_reg_state.
344 (i386_linux_new_fork): New function.
345 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
346 linux_nat_new_fork hook, and i386_forget_process as
347 linux_nat_forget_process hook.
348 * i386-nat.c (i386_init_dregs): Delete.
349 (i386_inferior_data, struct i386_inferior_data):
350 Delete.
351 (struct i386_process_info): New.
352 (i386_process_list): New global.
353 (i386_find_process_pid, i386_add_process, i386_process_info_get):
354 New functions.
355 (i386_inferior_data_get): Delete.
356 (i386_process_info_get): New function.
357 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
358 (i386_forget_process): New function.
359 (i386_cleanup_dregs): Rewrite.
360 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
361 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
362 (i386_stopped_data_address, i386_insert_hw_breakpoint)
363 (i386_remove_hw_breakpoint): Adjust to pass the current process id
364 to i386_debug_reg_state.
365 (i386_use_watchpoints): Don't register inferior data.
366 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
367 adjust comment.
368 (i386_forget_process): Declare.
369 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
370 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
371 New static globals.
372 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
373 (add_initial_lwp): New, factored out from ...
374 (add_lwp): ... this. Don't check the number of lwps before
375 calling linux_nat_new_thread.
376 (linux_nat_iterate_watchpoint_lwps): Delete.
377 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
378 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
379 forks and vforks.
380 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
381 initial lwp.
382 (linux_nat_kill, linux_nat_mourn_inferior): Call
383 linux_nat_forget_process.
384 (linux_nat_set_new_fork, linux_nat_set_forget_process)
385 (linux_nat_forget_process): New functions.
386 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
387 type.
388 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
389 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
390 types.
391 (linux_nat_set_new_fork, linux_nat_set_forget_process)
392 (linux_nat_forget_process): New declarations.
393
394 * amd64fbsd-nat.c (super_mourn_inferior): New global.
395 (amd64fbsd_mourn_inferior): New function.
396 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
397 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
398
399 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
400
401 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
402 Adding _().
403
404 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
405
406 * aarch64-linux-nat.c (debug_reg_change_callback)
407 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
408 %s and phex().
409
410 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
411
412 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
413 with LONGEST.
414
415 2013-02-13 Pedro Alves <palves@redhat.com>
416 Hafiz Abid Qadeer <abidh@codesourcery.com>
417
418 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
419
420 2013-02-12 Tom Tromey <tromey@redhat.com>
421
422 PR symtab/11464:
423 * c-exp.y (lex_one_token): Initialize other fields of yylval on
424 NAME return.
425 (classify_inner_name): Remove 'first_name' argument, add
426 'context'. Remove unused variable.
427 (yylex): Explicitly maintain the context type. Exit loop earlier
428 if NAME result is seen.
429
430 2013-02-12 Pedro Alves <palves@redhat.com>
431
432 * amd64-darwin-tdep.c: Add (C) after Copyright.
433 * cli/cli-cmds.h: Ditto.
434 * cli/cli-decode.c: Ditto.
435 * cli/cli-decode.h: Ditto.
436 * cli/cli-dump.c: Ditto.
437 * cli/cli-dump.h: Ditto.
438 * cli/cli-interp.c: Ditto.
439 * cli/cli-logging.c: Ditto.
440 * cli/cli-script.c: Ditto.
441 * cli/cli-script.h: Ditto.
442 * cli/cli-setshow.c: Ditto.
443 * cli/cli-setshow.h: Ditto.
444 * cli/cli-utils.c: Ditto.
445 * cli/cli-utils.h: Ditto.
446 * config/alpha/nm-osf3.h: Ditto.
447 * config/djgpp/djconfig.sh: Ditto.
448 * config/i386/nm-fbsd.h: Ditto.
449 * config/i386/nm-i386gnu.h: Ditto.
450 * config/nm-linux.h: Ditto.
451 * config/nm-nto.h: Ditto.
452 * config/rs6000/nm-rs6000.h: Ditto.
453 * config/sparc/nm-sol2.h: Ditto.
454 * darwin-nat-info.c: Ditto.
455 * dfp.c: Ditto.
456 * dfp.h: Ditto.
457 * gdb-demangle.h: Ditto.
458 * i386-darwin-nat.c: Ditto.
459 * i386-darwin-tdep.c: Ditto.
460 * linux-fork.h: Ditto.
461 * m32c-tdep.c: Ditto.
462 * microblaze-linux-tdep.c: Ditto.
463 * microblaze-rom.c: Ditto.
464 * microblaze-tdep.c: Ditto.
465 * microblaze-tdep.h: Ditto.
466 * mips-linux-tdep.h: Ditto.
467 * ppc-ravenscar-thread.c: Ditto.
468 * ppc-ravenscar-thread.h: Ditto.
469 * prologue-value.c: Ditto.
470 * prologue-value.h: Ditto.
471 * ravenscar-thread.c: Ditto.
472 * ravenscar-thread.h: Ditto.
473 * sparc-ravenscar-thread.c: Ditto.
474 * sparc-ravenscar-thread.h: Ditto.
475 * tilegx-linux-tdep.c: Ditto.
476 * unwind_stop_reasons.def: Ditto.
477 * windows-nat.h: Ditto.
478 * xtensa-linux-tdep.c: Ditto.
479 * xtensa-xtregs.c: Ditto.
480 * regformats/regdat.sh: Ditto.
481 * regformats/regdef.h: Ditto.
482
483 2013-02-12 Pedro Alves <palves@redhat.com>
484
485 * break-catch-sig.c: Update copyright years.
486
487 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
488
489 Add support for a destructor for ui_out data and use it to
490 provide a ui_out destructor.
491 * ui-out.h: Declare the new ui_out destructor.
492 (ui_out_impl): Add a field for data destructor in ui_out_impl.
493 * ui-out.c (default_data_destroy): Add a default data destructor
494 which does nothing.
495 (default_ui_out_impl): Set the new data_destroy field to
496 default_data_destroy
497 (uo_data_destroy): Local function which invokes the data
498 destructor if present.
499 (clear_table): Local function which clears the table data of a
500 ui_out object.
501 (ui_out_destroy): Public function which frees a ui_out object.
502 (ui_out_table_end): Use the new clear_table function.
503 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
504 NULL.
505 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
506 to NULL.
507
508 2013-02-11 Doug Evans <dje@google.com>
509
510 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
511 (printf_decfloat): New function. Broken out from ui_printf.
512 Remove unnecessary code to shift the entire format string down.
513 (printf_pointer): New function.
514 (ui_printf): Code to print C strings, wide C strings, decfloats,
515 and pointers moved to separate functions.
516
517 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
518
519 * valops.c (value_assign): Handling bitfield offset in
520 `lval_internalvar_component' case.
521
522 2013-02-08 Doug Evans <dje@google.com>
523
524 * common/format.c (parse_format_string): Fix whitespace.
525
526 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
527
528 * stack.c (return_command): Work around uninitialized variable
529 warning.
530
531 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
532
533 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
534 number of the registers from 36 to 34.
535
536 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
537
538 * NEWS: Mention new AArch64 native and target support.
539
540 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
541
542 * MAINTAINERS (Write After Approval): Add myself.
543
544 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
545 Marcus Shawcroft <marcus.shawcroft@arm.com>
546 Nigel Stephens <nigel.stephens@arm.com>
547 Yufeng Zhang <yufeng.zhang@arm.com>
548
549 * aarch64-linux-nat.c: New file.
550 * config/aarch64/linux.mh: New file.
551 * configure.host: Add AArch64.
552 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
553
554 2013-02-07 Doug Evans <dje@google.com>
555
556 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
557 disassemble command.
558
559 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
560
561 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
562 set_gdbarch_fetch_tls_load_module_address.
563
564 2013-02-06 David S. Miller <davem@davemloft.net>
565
566 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
567 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
568 * value.c (struct_return_convention): New function.
569 (using_struct_return): Implement in terms of struct_return_convention.
570 * value.h (struct_return_convention): Declare.
571 * stack.c (return_command): Allow successful overriding of the return
572 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
573
574 2013-02-06 Tom Tromey <tromey@redhat.com>
575
576 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
577 outside of TRY_CATCH.
578
579 2013-02-06 Yao Qi <yao@codesourcery.com>
580
581 * mi/mi-interp.c: Include "tracepoint.h".
582 (mi_tsv_modified): Declare.
583 (mi_tsv_created, mi_tsv_deleted): Update declaration.
584 (mi_interpreter_init): Call observer_attach_tsv_modified.
585 (mi_tsv_modified): New.
586 (mi_tsv_created, mi_tsv_deleted): Update.
587 * tracepoint.c (trace_variable_command): Call
588 observer_notify_tsv_modified if the initial value of tsv is
589 changed.
590 (delete_trace_state_variable): Call
591 observer_notify_tsv_deleted earlier.
592 (trace_variable_command): Caller update.
593 (create_tsv_from_upload): Likewise.
594 * observer.sh: Declare "struct trace_state_variable".
595
596 * NEWS: Mention the new MI notification "=tsv-modified".
597
598 2013-02-05 Doug Evans <dje@google.com>
599
600 * completer.c (location_completer): Fix typo in comment.
601
602 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
603
604 * breakpoint.c (add_location_to_breakpoint): Insert the location with
605 ADDRESS sorted.
606
607 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
608
609 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
610 Refactor if statement to avoid trailing || operator.
611
612 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
613
614 * NEWS: Add PowerPC FreeBSD as a new native configuration.
615
616 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
617
618 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
619 * configure.host: Add powerpc*-*-freebsd* target.
620 * configure.tgt: Add target info for powerpc*-*-freebsd*.
621 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
622 * config/powerpc/fbsd.mh: New file.
623
624 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
625 Denys Vlasenko <dvlasenk@redhat.com>
626 Pedro Alves <palves@redhat.com>
627
628 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
629 (struct elf_internal_linux_prpsinfo): Forward declare.
630 * gdbarch.h, gdbarch.c: Regenerate.
631 * linux-tdep.c: Include `cli/cli-utils.h'.
632 (linux_fill_prpsinfo): New function.
633 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
634 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
635 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
636 depending on gdbarch pointer bitness.
637 * ppc-linux-tdep.c: Include elf-bfd.h.
638 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
639 on 32-bit.
640
641 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
642 Marcus Shawcroft <marcus.shawcroft@arm.com>
643 Nigel Stephens <nigel.stephens@arm.com>
644 Yufeng Zhang <yufeng.zhang@arm.com>
645
646 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
647
648 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
649 Marcus Shawcroft <marcus.shawcroft@arm.com>
650 Nigel Stephens <nigel.stephens@arm.com>
651 Yufeng Zhang <yufeng.zhang@arm.com>
652
653 * aarch64-newlib-tdep.c: New file.
654 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
655 aarch64*-*-elf.
656 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
657 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
658 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
659 * osabi.c (gdb_osabi_names): Add "Newlib".
660
661 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
662 Marcus Shawcroft <marcus.shawcroft@arm.com>
663 Nigel Stephens <nigel.stephens@arm.com>
664 Yufeng Zhang <yufeng.zhang@arm.com>
665
666 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
667 (ALLDEPFILES): Add aarch64-linux-tdep.c.
668 * aarch64-linux-tdep.c: New file.
669 * aarch64-linux-tdep.h: New file.
670 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
671 * configure.tgt: Add aarch64-none-linux-gnu.
672
673 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
674 Marcus Shawcroft <marcus.shawcroft@arm.com>
675 Nigel Stephens <nigel.stephens@arm.com>
676 Yufeng Zhang <yufeng.zhang@arm.com>
677
678 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
679 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
680 (ALLDEPFILES): Add aarch64-tdep.c.
681 * aarch64-tdep.c: New file.
682 * aarch64-tdep.h: New file.
683 * configure.tgt: Add AArch64.
684 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
685 (aarch64-expedite): New definition.
686 * features/aarch64-core.xml: New file.
687 * features/aarch64-fpu.xml: New file.
688 * features/aarch64-without-fpu.c: New file (generated).
689 * features/aarch64-without-fpu.xml: New file.
690 * features/aarch64.c: New file (generated).
691 * features/aarch64.xml: New file.
692 * regformats/aarch64-without-fpu.dat: New file (generated).
693 * regformats/aarch64.dat: New file (generated).
694
695 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
696
697 * contrib/expect-read1.c: New file.
698 * contrib/expect-read1.sh: New file.
699
700 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
701
702 * dwarf2read.c (file_file_name): New function with code from
703 file_full_name.
704 (file_full_name): Move most of the code to file_file_name.
705 (macro_start_file): Rename variable full_name to file_name and use
706 file_file_name for it. Add comp_dir parameter to new_macro_table.
707 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
708 macro_source_file->filename access by macro_source_fullname call.
709 * macroscope.c (_initialize_macroscope): Update the new_macro_table
710 caller.
711 * macrotab.c (struct macro_table): New field comp_dir.
712 (macro_include): New variables link_fullname and source_fullname.
713 Replace any macro_source_file->filename access by macro_source_fullname
714 call.
715 (macro_lookup_inclusion): Remove the partial filenames checking code.
716 (check_for_redefinition): New variables source_fullname and
717 found_key_fullname. Replace any macro_source_file->filename access by
718 macro_source_fullname call.
719 (macro_undef): New variables source_fullname and key_fullname. Replace
720 any macro_source_file->filename access by macro_source_fullname call.
721 (macro_lookup_definition): New variables retval and source_fullname.
722 Replace any macro_source_file->filename access by macro_source_fullname
723 call.
724 (foreach_macro): New variable key_fullname. Replace any
725 macro_source_file->filename access by macro_source_fullname call.
726 (foreach_macro_in_scope): New variable datum_fullname. Replace any
727 macro_source_file->filename access by macro_source_fullname call.
728 (new_macro_table): Add parameter comp_dir. Initialize T with it.
729 (macro_source_fullname): New function.
730 * macrotab.h (struct macro_source_file): Extent the filename field
731 comment.
732 (new_macro_table): New parameter comp_dir, add a comment for it.
733 (macro_source_fullname): new declaration.
734
735 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
738 this_real_name to outer block. Use it also for
739 compare_filenames_for_search.
740 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
741 with dw2_get_real_path for file_matcher, considering also
742 BASENAMES_MAY_DIFFER.
743 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
744
745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
746
747 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
748 to the file_matcher parameter. Pass 0 to it.
749 (dwarf2_create_include_psymtab): Copy also DIRNAME.
750 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
751 NULL psymtab_to_fullname result.
752 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
753 an expected filename instead.
754 (expand_symtabs_matching_via_partial): Add basenames parameter to the
755 file_matcher parameter. Call also psymtab_to_fullname, after newly
756 considering BASENAMES_MAY_DIFFER.
757 * source.c (rewrite_source_path): Remove static.
758 * source.h (rewrite_source_path): New declaration.
759 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
760 the expand_symtabs_matching field. Comment it.
761 * symtab.c (file_matches): New function comment. Add parameter
762 basenames, implement it.
763 (search_symbols_file_matches): Add basenames parameter. Update the
764 file_matches caller.
765 (search_symbols): Match FILES also against symtab_to_fullname.
766 Optimize it for BASENAMES_MAY_DIFFER.
767
768 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * source.c (print_source_lines_base): Print for TUI also "fullname".
771 * tui/tui-data.c (init_content_element): Change tui_locator_element
772 field to full_name.
773 * tui/tui-data.h (struct tui_locator_element): Likewise.
774 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
775 tui_update_locator_filename calls to tui_update_locator_fullname.
776 Replace symtab->filename refererence by symtab_to_fullname call.
777 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
778 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
779 field to full_name. Replace symtab->filename refererence by
780 symtab_to_fullname call.
781 (tui_show_symtab_source): Rename parameter to fullname. Change
782 tui_locator_element field to full_name.
783 * tui/tui-stack.c: Include source.h.
784 (tui_set_locator_filename): Rename the declaration to ...
785 (tui_set_locator_fullname): ... here. Rename its parameter to
786 fullname, updates its comment.
787 (tui_set_locator_info): Rename its parameter to fullname.
788 (tui_set_locator_filename): Rename the definition to ...
789 (tui_set_locator_fullname): ... here. Rename its parameter to
790 fullname, updates its comment. Change tui_locator_element field to
791 full_name.
792 (tui_set_locator_info): Rename its parameter to fullname.
793 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
794 (tui_update_locator_filename): Rename to ...
795 (tui_update_locator_fullname): ... here. Rename callee to
796 tui_set_locator_fullname.
797 (tui_show_frame_info): Replace symtab->filename refererence by
798 symtab_to_fullname call.
799 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
800 (tui_update_locator_fullname): ... here.
801 * tui/tui-winsource.c (tui_display_main): Rename the callee to
802 tui_update_locator_fullname. Replace symtab->filename refererence by
803 symtab_to_fullname call.
804 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
805 Rename the callee to tui_update_locator_fullname.
806 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
807
808 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
811 by symtab_to_filename_for_display calls.
812 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
813 (clear_command): New variable sal_fullname, initialize it. Replace
814 compare_filenames_for_search by filename_cmp with sal_fullname.
815 (say_where, update_static_tracepoint): Replace symtab->filename
816 refererences by symtab_to_filename_for_display calls.
817 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
818 Likewise.
819 * dwarf2read.c: Include source.h.
820 (fixup_go_packaging): Replace symtab->filename refererences by
821 symtab_to_filename_for_display calls.
822 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
823 Replace symtab->filename refererences by symtab_to_filename_for_display
824 calls.
825 (create_sals_line_offset, convert_linespec_to_sals): New variable
826 fullname, initialize it, replace symtab->filename reference by the
827 variable.
828 * linux-fork.c: Include source.h.
829 (info_checkpoints_command): Replace symtab->filename refererences by
830 symtab_to_filename_for_display calls.
831 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
832 by symtab_to_filename_for_display calls.
833 * mdebugread.c: Include source.h.
834 (psymtab_to_symtab_1): Replace symtab->filename refererences by
835 symtab_to_filename_for_display calls.
836 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
837 (mi_cmd_file_list_exec_source_files): Likewise.
838 * printcmd.c: Include source.h.
839 (build_address_symbolic): Replace symtab->filename refererences by
840 symtab_to_filename_for_display calls.
841 * psymtab.c (partial_map_symtabs_matching_filename)
842 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
843 with psymtab_to_fullname.
844 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
845 by symtab_to_filename_for_display calls.
846 (stpy_get_filename): New variable filename, initialize it, use instead
847 of symtab->filename refererences.
848 (salpy_str): Make variable filename const char *. Replace
849 symtab->filename refererences by symtab_to_filename_for_display calls.
850 * skip.c: Include source.h and filenames.h.
851 (skip_file_command): Remove const from the symtab variable. Replace
852 symtab->filename refererences by symtab_to_fullname call.
853 (function_name_is_marked_for_skip): New variables searched_for_fullname
854 and fullname. Use them to search also with symtab's fullname.
855 * source.c (find_source_lines): Replace symtab->filename refererences
856 by symtab_to_filename_for_display calls.
857 (print_source_lines_base): New variable filename, use it instead of
858 symtab->filename. Replace symtab->filename refererences by
859 symtab_to_filename_for_display calls.
860 (line_info, forward_search_command): Replace symtab->filename
861 refererences by symtab_to_filename_for_display calls.
862 (reverse_search_command): Replace symtab->filename refererences by
863 symtab_to_filename_for_display calls. New variable filename for it.
864 * stack.c (frame_info): Likewise.
865 * symmisc.c: Include source.h.
866 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
867 (maintenance_info_symtabs): Replace symtab->filename refererences by
868 symtab_to_filename_for_display calls.
869 * symtab.c (iterate_over_some_symtabs): Call
870 compare_filenames_for_search also with symtab_to_fullname.
871 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
872 symtab->filename refererences by symtab_to_filename_for_display calls.
873 (find_line_symtab): Replace symtab->filename refererences by
874 symtab_to_filename_for_display calls.
875 (file_matches): Replace filename_cmp by compare_filenames_for_search.
876 (print_symbol_info): Make the last parameter const char *. New
877 variable s_filename. Use it in the function.
878 (symtab_symbol_info): Make the last_filename variable const char *.
879 Replace symtab->filename refererences by symtab_to_filename_for_display
880 calls.
881 (rbreak_command): New variable fullname. Use it. Replace
882 symtab->filename refererence by symtab_to_filename_for_display call.
883 * tracepoint.c (set_traceframe_context, trace_find_line_command)
884 (print_one_static_tracepoint_marker): Replace symtab->filename
885 refererences by symtab_to_filename_for_display calls.
886 * tui/tui-source.c (tui_set_source_content): New variables filename and
887 s_filename. Replace symtab->filename refererences by this variable.
888 Replace other symtab->filename refererences by
889 symtab_to_filename_for_display calls.
890
891 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
892 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 Add a new variable that controls a way in which filenames are
895 displayed.
896 * NEWS (set filename-display): New entry.
897 * source.c (filename_display_basename, filename_display_relative)
898 (filename_display_absolute, filename_display_kind_names)
899 (filename_display_string, show_filename_display_string)
900 (symtab_to_filename_for_display): New.
901 (_initialize_source): Added initialization of 'filename-display'
902 variable.
903 * source.h (symtab_to_filename_for_display): Added declaration.
904 * stack.c (print_frame): Added new variable and calling of a new
905 function and condition with this variable. Changed third argument of
906 calling of a function.
907
908 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
909
910 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
911 Rename field reference filename to fullname.
912 * tui/tui-data.h (struct tui_source_info): Rename field filename to
913 fullname. New comment for it.
914 * tui/tui-source.c (tui_set_source_content): Rename field reference
915 filename to fullname. Initialize field by symtab_to_fullname now.
916 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
917 reference filename to fullname. Use symtab_to_fullname during
918 comparison.
919
920 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 Code cleanup.
923 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
924 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
925 filename to fullname. Rename variable this_name to this_fullname.
926 Lowercase FILENAME_CMP call.
927 (dw2_find_symbol_file): New comment for the returned string.
928 (dwarf2_gdb_index_functions): Rename the function to
929 dw2_expand_symtabs_with_fullname.
930 * psymtab.c (read_psymtabs_with_filename): Rename to ...
931 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
932 fullname.
933 (psym_functions): Rename the function to read_psymtabs_with_fullname.
934 * symfile.h (struct quick_symbol_functions): Rename field
935 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
936 parameter filename to fullname. Document returned string meaning for
937 find_symbol_file.
938 * symtab.c (find_line_symtab): Rename the called function to
939 expand_symtabs_with_fullname.
940
941 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 Code cleanup.
944 * breakpoint.c (clear_command): Remove variable is_abs, unify the
945 call of filename_cmp with compare_filenames_for_search.
946 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
947 is_abs, unify the call of FILENAME_CMP with
948 compare_filenames_for_search. New gdb_asserts for real_path and name.
949 Unify the call of compare_filenames_for_search with FILENAME_CMP.
950 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
951 * symfile.h (struct quick_symbol_functions): Extend the comment for
952 map_symtabs_matching_filename.
953 * symtab.c (compare_filenames_for_search): Remove the function comment
954 relative path requirement. Handle absolute filenames, with a comment.
955 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
956 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
957 real_path and name. Unify the call of compare_filenames_for_search
958 with FILENAME_CMP.
959 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
960
961 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
962
963 Code cleanup.
964 * breakpoint.c (print_breakpoint_location): Replace bp_location field
965 source_file references by symtab field references. Remove variables
966 sal and fullname.
967 (momentary_breakpoint_from_master, add_location_to_breakpoint):
968 (clear_command, say_where): Replace bp_location field source_file
969 references by symtab field references.
970 (bp_location_dtor): Remove the source_file reference.
971 (update_static_tracepoint): Replace bp_location field source_file
972 references by symtab field references.
973 (breakpoint_free_objfile): New function.
974 * breakpoint.h (struct bp_location): Extend the comment for line_number.
975 Replace the field source_file by field symtab, extend its comment.
976 (breakpoint_free_objfile): New declaration.
977 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
978 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
979 field source_file references by symtab field references.
980
981 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
982
983 Replace xfullpath calls by gdb_realpath calls.
984 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
985 function comment.
986 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
987 Remove it from the iterate_over_some_symtabs call.
988 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
989 Remove it from the dw2_map_expand_apply calls, remove a block handling
990 it.
991 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
992 Remove it from the iterate_over_some_symtabs call.
993 (partial_map_symtabs_matching_filename): Remove parameter full_path.
994 Remove it from the partial_map_expand_apply calls, remove a block
995 handling it. Drop gdb_realpath call and cleanups from the real_path
996 handling.
997 * source.c (openp): Drop the comment part about xfullpath. Replace
998 xfullpath calls by gdb_realpath calls.
999 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1000 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1001 from method map_symtabs_matching_filename and its comment.
1002 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1003 gdb_realpath call.
1004 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1005 remove it also from the function comment, remove a block handling it.
1006 Drop gdb_realpath call and cleanups from the real_path handling.
1007 (iterate_over_symtabs): Drop variable full_path and its use.
1008 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1009 * utils.c (xfullpath): Remove.
1010 * utils.h (xfullpath): Remove.
1011
1012 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
1013
1014 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1015 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1016 (ALLDEPFILES): Add ppc64-tdep.c.
1017 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1018 ppc64-tdep.o to gdb_target_obs.
1019 * ppc64-tdep.h: New file.
1020 * ppc64-tdep.c: New file.
1021 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1022 ppc-linux-tdep.c to here.
1023 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1024 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1025 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1026 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1027 from ppc-linux-tdep.c to here.
1028 (ppc64_convert_from_func_ptr_addr): Rename from
1029 ppc64_linux_convert_from_func_ptr_addr to
1030 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1031 here.
1032 * rs6000-tdep.c:
1033 (read_insn): Move from ppc-linux-tdep.c to here.
1034 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1035 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1036 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1037 Removed above functions.
1038 (ppc_linux_init_abi): Adjust.
1039
1040 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1041
1042 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1043
1044 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1045
1046 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1047
1048 2013-02-01 Pedro Alves <palves@redhat.com>
1049
1050 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1051 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1052
1053 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1056 files with no separate debug info.
1057 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1058 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1059 only for files with no separate debug info.
1060
1061 2013-01-31 Tom Tromey <tromey@redhat.com>
1062
1063 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1064 change type.
1065 (struct jit_program_space_data): Rename from jit_inferior_data.
1066 Update comments.
1067 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1068 Change return type. Attach data to program space.
1069 (jit_program_space_data_cleanup): Rename from
1070 jit_inferior_data_cleanup; change argument type.
1071 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1072 change type.
1073 (jit_register_code): Update.
1074 (jit_update_inferior_cache): Remove.
1075 (jit_breakpoint_deleted): Get jit data from the location's program
1076 space.
1077 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1078 'ps_data', change type.
1079 (jit_inferior_init, jit_breakpoint_re_set_internal)
1080 (jit_event_handler): Update.
1081 (free_objfile_data): Get data from objfile's program space.
1082 (_initialize_jit): Update.
1083
1084 2013-01-31 Tom Tromey <tromey@redhat.com>
1085
1086 PR gdb/13987:
1087 * jit.c (struct jit_inferior_data) <cached_code_address,
1088 jit_breakpoint>: New fields.
1089 (jit_breakpoint_re_set_internal): Fix logging. Only create
1090 breakpoint if cached address has changed.
1091 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1092 functions.
1093 (_initialize_jit): Register breakpoint deleted observer.
1094
1095 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1096
1097 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1098 (save_infcall_suspend_state): Ifdef out unused inf.
1099 (restore_infcall_suspend_state): Ifdef out unused inf.
1100 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1101 (jit_frame_sniffer): Remove unused inf_data.
1102
1103 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1104
1105 * c-exp.y (classify_inner_name): Remove unused type.
1106 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1107 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1108 need_escape.
1109 (c_get_string): Remove unused kind.
1110 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1111
1112 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1113
1114 * charset.c (intermediate_encoding): Remove unused i.
1115 * completer.c (signal_completer): Remove unused i.
1116 * continuations.c (discard_my_continuations_1): Remove unused
1117 continuation_ptr.
1118 * corelow.c (core_close): Remove unuseD name.
1119 (get_core_siginfo): Remove unused pid.
1120 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1121 i, cps.
1122 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1123 (loclist_describe_location): Remove unused first.
1124 * event-top.c (command_line_handler): Remove unused got_eof.
1125 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1126 (resize_section_table): Remove unused old_value.
1127 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1128 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1129 * i386-tdep.c (i386_process_record): Remove unused rex.
1130 * infcmd.c (get_return_value): Remove unused uiout.
1131 * jv-lang.c (type_from_class): Remove unused is_array.
1132 * jv-valprint.c (java_val_print): Remove unused i.
1133 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1134 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1135 * m2-typeprint.c (m2_print_type): Remove unused code.
1136 * macroexp.c (get_character_constant): Remove unused body_start.
1137 (macro_stringify): Remove unused result.
1138 * objc-lang.c (find_methods): Remove unused gdbarch.
1139 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1140 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1141 * stack.c (print_frame_args): Remove unused summary.
1142 * thread.c (thread_apply_command): Remove unused p.
1143 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1144 * valops.c (search_struct_method): Remove unused skip.
1145 * valprint.c (generic_val_print): Remove unused byte_order.
1146 * varobj.c (varobj_update): Remove unused changed.
1147 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1148 (alias_command): Remove unused c.
1149 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1150 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1151 format.
1152 (mi_cmd_data_write_memory): Remove unused word_format.
1153 (mi_cmd_data_write_memory_bytes): Remove unused r.
1154 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1155 p_start, p_end.
1156 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1157 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1158 line_width.
1159
1160 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1161
1162 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1163 * symtab.c (iterate_over_symtabs): Remove unused s.
1164 (find_pc_sect_symtab): Remove unused pspAce.
1165 (find_pc_sect_line): Remove unused alt_symtab.
1166 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1167 (completion_list_add_name): Remove unused newsize.
1168
1169 2013-01-31 Tom Tromey <tromey@redhat.com>
1170
1171 PR c++/14998:
1172 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1173 TYPE_CODE_FUNC.
1174
1175 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1176
1177 * target.c (target_read_string): Remove unused origlen.
1178
1179 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1180
1181 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1182 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1183 * ax-general.c (ax_print): Remove unused is_float.
1184 * blockframe.c (block_innermost_frame): Remove unused start, end.
1185 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1186
1187 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1188
1189 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1190 (svr4_read_so_list): Remove unused lmo.
1191 * solib-target.c (solib_target_relocate_section_addresses): Remove
1192 unused flags.
1193
1194 2013-01-30 Tom Tromey <tromey@redhat.com>
1195
1196 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1197
1198 2013-01-30 Tom Tromey <tromey@redhat.com>
1199
1200 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1201 * utils.c (gnu_debuglink_crc32): Remove.
1202 * utils.h (gnu_debuglink_crc32): Don't declare.
1203
1204 2013-01-30 Tom Tromey <tromey@redhat.com>
1205
1206 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1207 (read_structure_type, read_enumeration_type): Remove cast.
1208
1209 2013-01-30 Tom Tromey <tromey@redhat.com>
1210
1211 * dwarf2read.c (read_namespace_type): Remove cast.
1212 (read_typedef): Likewise.
1213
1214 2013-01-29 Tom Tromey <tromey@redhat.com>
1215
1216 * dwarf2read.c (free_dwo_file): Remove assert.
1217
1218 2013-01-29 Tom Tromey <tromey@redhat.com>
1219
1220 * value.c (deprecated_set_value_modifiable): Remove.
1221 * value.h (deprecated_set_value_modifiable): Remove.
1222
1223 2013-01-28 Doug Evans <dje@google.com>
1224
1225 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1226 to addresses from dwo files.
1227
1228 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1229
1230 * valops.c (find_overload_match): Remove unused argument 'lax'.
1231 * value.h: Remove unused argument 'lax' from the declaration of
1232 find_overload_match.
1233 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1234 to find_overload_match.
1235 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1236 argument to find_overload_match.
1237
1238 2013-01-25 Tom Tromey <tromey@redhat.com>
1239
1240 * dwarf2read.c (processing_has_namespace_info): Remove.
1241 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1242 (process_die, read_func_scope, dwarf2_start_symtab)
1243 (new_symbol_full): Update.
1244
1245 2013-01-25 Tom Tromey <tromey@redhat.com>
1246
1247 * cp-namespace.c (cp_set_block_scope): Remove.
1248 * cp-support.h (cp_set_block_scope): Remove.
1249 * dbxread.c: Include block.h.
1250 (cp_set_block_scope): New function.
1251 (process_one_symbol): Update.
1252 * dwarf2read.c (read_func_scope): Use block_set_scope.
1253
1254 2013-01-25 Pedro Alves <palves@redhat.com>
1255
1256 * remote.c (add_current_inferior_and_thread): Tweak comment.
1257
1258 2013-01-25 Tom Tromey <tromey@redhat.com>
1259
1260 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1261 (cp_add_using_directive): Add 'copy_names' argument.
1262 * cp-support.h (cp_add_using_directive): Update.
1263 (struct using_direct) <import_src, import_dest, alias,
1264 declaration>: Now const.
1265 * dwarf2read.c (read_import_statement): Use obconcat.
1266 Don't copy names passed to cp_add_using_directive.
1267
1268 2013-01-25 Tom Tromey <tromey@redhat.com>
1269
1270 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1271
1272 2013-01-25 Pedro Alves <palves@redhat.com>
1273
1274 * remote.c (stop_reply_extract_thread): New.
1275 (add_current_inferior_and_thread): New parameter 'wait_status'.
1276 Handle it.
1277 (remote_start_remote): Pass wait status to
1278 add_current_inferior_and_thread.
1279 (extended_remote_run): Update comment.
1280 (extended_remote_create_inferior_1): Pass wait status to
1281 add_current_inferior_and_thread.
1282
1283 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1284 Ulrich Weigand <uweigand@de.ibm.com>
1285
1286 * valarith.c (value_vector_widen): New function for replicating a
1287 scalar into a vector.
1288 (value_binop): Use value_vector_widen to widen scalar to vector
1289 rather than casting, this better matches gcc C behaviour.
1290 * valops.c (value_casst): Update logic for casting between vector
1291 types, and for casting from scalar to vector, try to match gcc C
1292 behaviour.
1293 * value.h (value_vector_widen): Declare.
1294 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1295 function, handle special case for casting scalar to vector.
1296 (opencl_relop): Use opencl_value_cast.
1297 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1298 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1299 in order to use opencl_value_cast.
1300
1301 2013-01-25 Yao Qi <yao@codesourcery.com>
1302
1303 * event-loop.c: Include "queue.h".
1304 (gdb_event_p): New typedef.
1305 (DECLARE_QUEUE_P): Use.
1306 (DEFINE_QUEUE_P): Use.
1307 (async_queue_event): Remove.
1308 (gdb_event_xfree): New.
1309 (initialize_event_loop): New.
1310 (process_event): Use QUEUE macros.
1311 (event_queue): Remove.
1312 (gdb_wait_for_event): Caller update.
1313 (check_async_event_handlers): Likewise.
1314 (poll_timers): Likewise.
1315 * event-loop.h (initialize_event_loop): Declare.
1316 * event-loop.c (gdb_event_xfree): New.
1317 * top.c (gdb_init): Call initialize_event_loop.
1318
1319 2013-01-25 Yao Qi <yao@codesourcery.com>
1320
1321 * event-loop.c (async_queue_event): Remove one parameter
1322 'position'. Remove code handling 'position' == TAIL.
1323 (gdb_wait_for_event): Caller update.
1324 (check_async_event_handlers): Caller update.
1325 (poll_timers): Caller update.
1326 * event-loop.h (enum queue_position): Remove.
1327
1328 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1329
1330 * MAINTAINERS: Update my email.
1331
1332 2013-01-25 Yao Qi <yao@codesourcery.com>
1333
1334 * main.c (print_gdb_help): Remove "--epoch" from the help
1335 message.
1336
1337 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1338
1339 * symtab.c (skip_prologue_using_sal): Consider a file
1340 change the same as an increased line number
1341
1342 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1343
1344 * MAINTAINERS (Write After Approval): Add myself to the list.
1345
1346 2013-01-24 Tom Tromey <tromey@redhat.com>
1347
1348 * ada-lang.h (ada_decode_symbol): Make return type const.
1349 * ada-lang.c (ada_decode_symbol): Likewise.
1350
1351 2013-01-23 Doug Evans <dje@google.com>
1352
1353 * linespec.c (find_linespec_symbols): Make static.
1354
1355 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1356
1357 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1358 type on float conversion for complex type.
1359
1360 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1361
1362 Add a new class gdb.Architecture which exposes GDB's
1363 internal representation of architecture via GDB Python API.
1364 * Makefile.in: Add entries corresponding to the new file
1365 python/py-arch.c.
1366 * NEWS (Python Scripting): Add entries for the new class
1367 gdb.Architecture and the new method gdb.Frame.architecture.
1368 * python/py-arch.c: Implement gdb.Architecture class.
1369 * python/py-frame.c (frapy_arch): Implement the method
1370 gdb.Frame.architecture().
1371 (frame_object_methods): Add 'architecture' to the method table.
1372 * python/python-internal.h: Add declarations of new utility
1373 functions.
1374 * python/python.c (_initialize_python): Initialize
1375 gdb.Architecture class.
1376
1377 2013-01-23 Doug Evans <dje@google.com>
1378
1379 Work around binutils/15021.
1380 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1381 type_unit_group out of union s. All uses updated.
1382 (read_index_from_section): Watch for index version 8.
1383 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1384 an imported symtab.
1385 (write_psymtabs_to_index): Increment version number to 8.
1386
1387 2013-01-22 Pedro Alves <palves@redhat.com>
1388
1389 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1390 user-visible.
1391
1392 2013-01-22 Pedro Alves <palves@redhat.com>
1393
1394 * annotate.c (annotate_breakpoints_changed): Rename to ...
1395 (annotate_breakpoints_invalid): ... this. Make static.
1396 (breakpoint_changed): Adjust.
1397 (_initialize_annotate): Always install the observers. Install a
1398 "breakpoint_created" observer.
1399 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1400 * breakpoint.c (set_breakpoint_condition)
1401 (breakpoint_set_commands, do_map_commands_command)
1402 (init_raw_breakpoint, clear_command, set_ignore_count)
1403 (enable_breakpoint_disp): No longer call
1404 annotate_breakpoints_changed.
1405
1406 2013-01-22 Pedro Alves <palves@redhat.com>
1407
1408 * annotate.c: Include "inferior.h".
1409 (frames_invalid_emitted)
1410 (breakpoints_invalid_emitted): New globals.
1411 (async_background_execution_p): New function.
1412 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1413 emitting the annotation if it has already been emitted.
1414 (annotate_display_prompt): New function.
1415 * annotate.h (annotate_display_prompt): New declaration.
1416 * event-top.c: Include annotate.h.
1417 (display_gdb_prompt): Call annotate_display_prompt.
1418
1419 2013-01-22 Pedro Alves <palves@redhat.com>
1420
1421 * annotate.c (ignore_count_changed): Delete.
1422 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1423 (annotate_ignore_count_change): Delete.
1424 (annotate_stopped): Don't emit a delayed breakpoints-changed
1425 annotation.
1426 * annotate.h (annotate_ignore_count_change): Delete.
1427 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1428 annotate_ignore_count_change.
1429
1430 2013-01-22 Tom Tromey <tromey@redhat.com>
1431
1432 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1433 require_rvalue for a register location.
1434
1435 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1436
1437 * breakpoint.c (print_one_breakpoint_location): Add MI
1438 field 'thread-groups' when printing a breakpoint.
1439 (output_thread_groups): New function.
1440
1441 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1442
1443 * python/lib/gdb/commands/explore.py
1444 (CompoundExplorer.explore_expr): Correct the name of a method
1445 being invoked.
1446 (ExploreTypeCommand.invoke): Add a missing 'return'.
1447
1448 2013-01-21 Tom Tromey <tromey@redhat.com>
1449
1450 * gdb_obstack.h (obconcat): Move declaration here, from...
1451 * symfile.h (obconcat): ... here.
1452 * gdb_obstack.c: New file.
1453 (obconcat): Move from...
1454 * symfile.c (obconcat): ... here.
1455 * Makefile.in (SFILES): Add gdb_obstack.c.
1456 (COMMON_OBS): Add gdb_obstack.o.
1457
1458 2013-01-21 Tom Tromey <tromey@redhat.com>
1459
1460 * symfile.h (obsavestring): Don't declare.
1461 * symfile.c (obsavestring): Remove.
1462 * ada-exp.y: Use obstack_copy0, not obsavestring.
1463 * ada-lang.c: Use obstack_copy0, not obsavestring.
1464 * coffread.c: Use obstack_copy0, not obsavestring.
1465 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1466 * dbxread.c: Use obstack_copy0, not obsavestring.
1467 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1468 * jit.c: Use obstack_copy0, not obsavestring.
1469 * mdebugread.c: Use obstack_copy0, not obsavestring.
1470 * psymtab.c: Use obstack_copy0, not obsavestring.
1471 * stabsread.c: Use obstack_copy0, not obsavestring.
1472 * xcoffread.c: Use obstack_copy0, not obsavestring.
1473
1474 2013-01-21 Tom Tromey <tromey@redhat.com>
1475
1476 * dwarf2read.c (fixup_go_packaging): Save package name
1477 on objfile obstack.
1478 * gdbtypes.c (init_type): Don't copy name.
1479
1480 2013-01-21 Tom Tromey <tromey@redhat.com>
1481
1482 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1483 const.
1484 (struct attribute) <u.str>: Now const.
1485 (struct fnfieldlist) <name>: Now const.
1486 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1487 (partial_die_parent_scope): Make return type const.
1488 (partial_die_full_name, add_partial_symbol): Update.
1489 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1490 'name' const.
1491 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1492 (read_file_scope, read_func_scope, dwarf2_add_field)
1493 (dwarf2_add_member_fn, read_structure_type)
1494 (process_enumeration_scope, read_array_type, read_module_type)
1495 (read_base_type, read_subrange_type): Update.
1496 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1497 (new_symbol_full, guess_full_die_structure_name): Update.
1498 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1499 (dwarf2_name): Return const type.
1500 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1501 const.
1502
1503 2013-01-21 Tom Tromey <tromey@redhat.com>
1504
1505 * gdbtypes.c (init_type): Make 'name' const.
1506 * gdbtypes.h (init_type): Update.
1507
1508 2013-01-21 Tom Tromey <tromey@redhat.com>
1509
1510 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1511 (start_symtab): Make 'name' and 'dirname' const. Use
1512 set_last_source_file.
1513 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1514 (last_source_file): Define. Now static.
1515 (set_last_source_file, get_last_source_file): New functions.
1516 * buildsym.h (last_source_file): Don't declare.
1517 (start_symtab): Update.
1518 (set_last_source_file, get_last_source_file): Declare.
1519 * coffread.c (complete_symtab): Use set_last_source_file.
1520 (coff_end_symtab): Likewise.
1521 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1522 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1523 set_last_source_file.
1524 (process_one_symbol): Use get_last_source_file.
1525 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1526 (psymtab_to_symtab_1): Use get_last_source_file.
1527 * xcoffread.c (process_linenos): Use get_last_source_file.
1528 (complete_symtab): Use set_last_source_file.
1529 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1530 (scan_xcoff_symtab): Use set_last_source_file.
1531
1532 2013-01-21 Tom Tromey <tromey@redhat.com>
1533
1534 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1535 (symbol_set_names): Remove casts. Handle field const-ness.
1536
1537 2013-01-21 Tom Tromey <tromey@redhat.com>
1538
1539 * dwarf2read.c (new_symbol_full): Remove cast.
1540 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1541 * symtab.h (symbol_set_demangled_name): Update.
1542
1543 2013-01-21 Tom Tromey <tromey@redhat.com>
1544
1545 * main.c (captured_main): Call bfd_init.
1546
1547 2013-01-21 Tom Tromey <tromey@redhat.com>
1548
1549 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1550 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1551 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1552 * NEWS: Update.
1553
1554 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1555
1556 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1557
1558 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 Fix gdb.fortran/common-block.exp crash in PIE mode.
1561 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1562 LOC_COMMON_BLOCK.
1563 * f-valprint.c (info_common_command_for_block): Expect
1564 LOC_COMMON_BLOCK in gdb_assert.
1565 * symtab.h (struct general_symbol_info): Update comment for the
1566 common_block member.
1567 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1568 (enum address_class): New member LOC_COMMON_BLOCK.
1569
1570 2013-01-18 David Blaikie <dblaikie@gmail.com>
1571
1572 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1573
1574 2013-01-18 Tom Tromey <tromey@redhat.com>
1575
1576 PR c++/14999:
1577 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1578 Call require_rvalue.
1579
1580 2013-01-18 Yao Qi <yao@codesourcery.com>
1581
1582 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1583 (dbx_read_symtab): New declaration.
1584 (dbx_psymtab_to_symtab): Delete.
1585 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1586 Rename parameter PST to SELF. Exchanged two parameters.
1587 (start_psymtab): Caller update.
1588 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1589 (dwarf2_read_symtab): New declaration.
1590 (dwarf2_psymtab_to_symtab): Delete.
1591 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1592 Rename parameter PST to SELF. Exchanged two parameters.
1593 (create_partial_symtab): Caller update.
1594 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1595 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1596 Rename parameter PST to SELF. Exchanged two parameters.
1597 (parse_partial_symbols, new_psymtab): Caller update.
1598 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1599 two parameters.
1600 * psymtab.c (psymtab_to_symtab): Caller update.
1601 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1602 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1603 Rename parameter PST to SELF. Exchanged two parameters.
1604 (xcoff_start_psymtab): Caller update.
1605
1606 2013-01-18 Yao Qi <yao@codesourcery.com>
1607
1608 * infrun.c (proceed): Rename local variable 'oneproc' to
1609 'force_step'.
1610
1611 2013-01-17 Doug Evans <dje@google.com>
1612
1613 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1614 (dw2_build_type_unit_groups): Delete. All uses updated.
1615
1616 * symtab.h (struct symbol_search): Add comment.
1617
1618 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1619
1620 * symtab.c (compare_filenames_for_search): New comment for
1621 HAS_DRIVE_SPEC.
1622
1623 2013-01-17 Tom Tromey <tromey@redhat.com>
1624
1625 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1626
1627 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1628
1629 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1630 initialize it by existing make_cleanup. Call new do_cleanups.
1631
1632 2013-01-17 Tom Tromey <tromey@redhat.com>
1633
1634 * cp-abi.c (cp_abi_completer): New function.
1635 (_initialize_cp_abi): Set completer for "set cp-abi".
1636
1637 2013-01-17 Tom Tromey <tromey@redhat.com>
1638
1639 * mem-break.c: Remove obsolete comment.
1640 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1641
1642 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1643
1644 * jit.c (jit_reader_load_command): Interpret the jit reader name
1645 as an absolute path if it begins with a forward slash.
1646
1647 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1648
1649 PR gdb/14550
1650
1651 * jit.c (finalize_symtab): Ensure that only the global block has a
1652 NULL superblock.
1653
1654 2013-01-17 Pedro Alves <palves@redhat.com>
1655
1656 * acinclude.m4: Include ../config/plugins.m4,
1657 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1658 * Makefile.in (aclocal_m4_deps): Update.
1659 * aclocal.m4: Renegerate.
1660
1661 2013-01-16 Doug Evans <dje@google.com>
1662
1663 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1664
1665 2013-01-16 Pedro Alves <palves@redhat.com>
1666 Tom Tromey <tromey@redhat.com>
1667
1668 PR cli/7221:
1669 * NEWS: Add "catch signal".
1670 * breakpoint.c (base_breakpoint_ops): No longer static.
1671 (bpstat_explains_signal): New function.
1672 (init_catchpoint): No longer static.
1673 (base_breakpoint_explains_signal): New function.
1674 (base_breakpoint_ops): Initialize new field.
1675 * breakpoint.h (enum bpstat_signal_value): New.
1676 (struct breakpoint_ops) <explains_signal>: New field.
1677 (bpstat_explains_signal): Remove macro, declare as function.
1678 (base_breakpoint_ops, init_catchpoint): Declare.
1679 * break-catch-sig.c: New file.
1680 * inferior.h (signal_catch_update): Declare.
1681 * infrun.c (signal_catch): New global.
1682 (handle_syscall_event): Update for change to
1683 bpstat_explains_signal.
1684 (handle_inferior_event): Likewise. Always handle random signals
1685 via bpstats.
1686 (signal_cache_update): Check signal_catch.
1687 (signal_catch_update): New function.
1688 (_initialize_infrun): Initialize signal_catch.
1689 * Makefile.in (SFILES): Add break-catch-sig.c.
1690 (COMMON_OBS): Add break-catch-sig.o.
1691
1692 2013-01-16 Tom Tromey <tromey@redhat.com>
1693
1694 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1695 (print_one_catch_solib, print_one_catch_syscall)
1696 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1697 "catch-type".
1698
1699 2013-01-16 Yao Qi <yao@codesourcery.com>
1700
1701 * printcmd.c (current_display_number): Make it static.
1702
1703 2013-01-16 Yao Qi <yao@codesourcery.com>
1704
1705 * infcmd.c (step_once): Don't check '!single_inst' as it was
1706 checked before.
1707
1708 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1711
1712 2013-01-14 Tom Tromey <tromey@redhat.com>
1713
1714 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1715 set command.
1716 * command.h (add_setshow_string_noescape_cmd): Update.
1717 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1718 (complete_set_gnutarget): New function.
1719 (_initialize_core): Set the "set gnutarget" completer.
1720
1721 2013-01-14 Tom Tromey <tromey@redhat.com>
1722
1723 PR symtab/14442:
1724 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1725 (c_type_print_modifier): Likewise.
1726 * dwarf2read.c (read_tag_restrict_type): New function.
1727 (read_type_die_1): Handle DW_TAG_restrict_type.
1728 * gdbtypes.c (make_restrict_type): New function.
1729 (recursive_dump_type): Handle TYPE_RESTRICT.
1730 * gdbtypes.h (enum type_flag_values): Renumber.
1731 (enum type_instance_flag_value): Add
1732 TYPE_INSTANCE_FLAG_RESTRICT.
1733 (TYPE_RESTRICT): New macro.
1734 (make_restrict_type): Declare.
1735
1736 2013-01-14 Tom Tromey <tromey@redhat.com>
1737
1738 PR symtab/14931:
1739 * psymtab.c (struct psymtab_state): New.
1740 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1741 functions.
1742 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1743 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1744
1745 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1746 Pedro Alves <palves@redhat.com>
1747
1748 PR remote/14786
1749
1750 * remote.c (remote_threads_info): Make a copy of the reply from
1751 qfThreadInfo and use that instead of rs->buf.
1752
1753 2013-01-14 Yao Qi <yao@codesourcery.com>
1754
1755 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1756 (dbx_psymtab_to_symtab): Likewise.
1757 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1758 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1759 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1760
1761 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1764 make_cleanup_restore_current_language. Call set_language. Move
1765 OLD_CHAIN and INNER_CHAIN cleanups.
1766 * utils.c (do_restore_current_language)
1767 (make_cleanup_restore_current_language): New functions.
1768 * utils.h (make_cleanup_restore_current_language): New declaration.
1769
1770 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1771
1772 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1773 non-existing files.
1774
1775 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1776 non-existing files if FILENAME is already absolute.
1777
1778 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1779
1780 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1781 fputs_filtered. Append trailing newline.
1782
1783 2013-01-11 Yao Qi <yao@codesourcery.com>
1784 Stan Shebs <stan@codesourcery.com>
1785
1786 * psymtab.c (init_psymbol_list): Clarify the comment.
1787
1788 2013-01-11 Yao Qi <yao@codesourcery.com>
1789
1790 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1791 (update_dprintf_command_list): Assert that 'printf_line' is
1792 non-null. Remove condition check.
1793
1794 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1795
1796 Code cleanup.
1797 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1798 type const char *.
1799 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1800 const char *.
1801 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1802
1803 2013-01-09 Anthony Green <green@moxielogic.com>
1804
1805 * cp-abi.c (cplus_print_vtable): Don't return value from void
1806 function.
1807 * ada-lang.c (re_set_catch_assert): Ditto.
1808
1809 2013-01-09 Doug Evans <dje@google.com>
1810
1811 * symfile.h (quick_symbol_functions): Delete member
1812 pre_expand_symtabs_matching. All uses removed.
1813 * dwarf2read.c (dw2_lookup_symbol): Implement.
1814 (dw2_do_expand_symtabs_matching): Delete.
1815 (dw2_pre_expand_symtabs_matching): Delete.
1816 (struct dw2_symtab_iterator): New type.
1817 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1818 (dw2_expand_symtabs_for_function): Rewrite.
1819 (dwarf2_gdb_index_functions): Update.
1820 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1821 (psym_functions): Update.
1822
1823 2013-01-09 Tom Tromey <tromey@redhat.com>
1824
1825 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1826 * configure: Rebuild.
1827 * configure.ac: Add somread.o to the build if BFD has SOM
1828 support.
1829 * somread.c: Include som/aout.h, not syms.h.
1830 (som_symtab_read): Use som_external_symbol_dictionary_record.
1831 Unpack records manually.
1832 (_initialize_somread): Declare.
1833
1834 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1835
1836 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1837 Cast return_address to 64bits.
1838
1839 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1840
1841 * printcmd.c: Remove define of function output_command.
1842 * tracepoint.c: Remove extern of function output_command.
1843 * valprint.h: (output_command): New extern.
1844
1845 2013-01-07 Tom Tromey <tromey@redhat.com>
1846
1847 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1848 Remove.
1849 (objc_language_defn): Use c_printchar, c_printstr,
1850 c_emit_char.
1851
1852 2013-01-07 Tom Tromey <tromey@redhat.com>
1853
1854 PR cli/7719:
1855 * NEWS: Update.
1856 * ada-valprint.c (printstr, print_field_values): Remove
1857 "inspect_it" code.
1858 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1859 code.
1860 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1861 code.
1862 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1863 * main.c (captured_main): Remove "epoch" argument.
1864 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1865 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1866 * p-valprint.c (pascal_object_print_value_fields): Remove
1867 "inspect_it" code.
1868 * printcmd.c (print_command_1): Remove 'inspect' argument.
1869 (print_command, call_command): Update.
1870 (inspect_command): Remove.
1871 (_initialize_printcmd): Make "inspect" an alias for "print".
1872 * top.c (epoch_interface): Remove.
1873 * top.h (epoch_interface): Remove.
1874 * valprint.c (user_print_options): Update.
1875 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1876 * valprint.h (struct value_print_options) <inspect_it>: Remove
1877 field.
1878
1879 2013-01-04 Tom Tromey <tromey@redhat.com>
1880
1881 * valprint.h (read_string): Add 'extern'.
1882
1883 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1884
1885 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1886 used to decide whether to define darwin_read_dyld_info or not.
1887
1888 2013-01-03 Pierre Muller <muller@sourceware.org>
1889
1890 * main.c (relocate_gdb_directory): Avoid calling stat function
1891 if DIR is empty.
1892
1893 2013-01-03 Yao Qi <yao@codesourcery.com>
1894
1895 * psymtab.c (fixup_psymbol_section): Update declaration.
1896 (fixup_psymbol_section): Remove code returning value.
1897
1898 2013-01-03 Yao Qi <yao@codesourcery.com>
1899
1900 * symtab.h: Remove some out of date comments.
1901 (enum exception_event_kind): Move it ...
1902 * breakpoint.c: ... here.
1903
1904 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1905
1906 PR gdb/14405
1907 * darwin-nat.c (darwin_read_dyld_info): Only build if
1908 TASK_DYLD_INFO_COUNT is defined.
1909 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1910 TASK_DYLD_INFO_COUNT is defined.
1911
1912 2013-01-02 Tom Tromey <tromey@redhat.com>
1913
1914 * symfile.h (struct ecoff_debug_hack): Remove.
1915 * objfiles.c: Don't include mdebugread.h.
1916
1917 2013-01-02 Tom Tromey <tromey@redhat.com>
1918
1919 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1920 * configure.ac: Check for Mach-O support in BFD. Update
1921 CONFIG_OBS.
1922 * configure: Rebuild.
1923
1924 2013-01-02 Tom Tromey <tromey@redhat.com>
1925
1926 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1927 * configure.ac: Use GDB_AC_CHECK_BFD.
1928 * configure: Rebuild.
1929
1930 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1931
1932 * MAINTAINERS: Update my email.
1933
1934 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1935
1936 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1937
1938 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1939
1940 * rs6000-nat.c (bss_data_overlap): New function.
1941 (vmap_symtab): Use it to adjust the .bss section's offset.
1942
1943 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1944
1945 Update year range in copyright notice of all files.
1946
1947 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1948
1949 * top.c (print_gdb_version): Update copyright year.
1950
1951 For older changes see ChangeLog-2012.
1952 \f
1953 Local Variables:
1954 mode: change-log
1955 left-margin: 8
1956 fill-column: 74
1957 version-control: never
1958 coding: utf-8
1959 End:
This page took 0.06808 seconds and 5 git commands to generate.