diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-21 14:12:22 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-21 14:12:22 -0500 |
commit | a59902a7c123512681bddc3fa90f271d4f089c35 (patch) | |
tree | 16bf472a73ee2e80cc8359a245e33b1475b6e11f /gdb/ChangeLog | |
parent | d3abc0cee08121f4957a1286e93a3fcb0e969869 (diff) | |
download | gdb-a59902a7c123512681bddc3fa90f271d4f089c35.zip gdb-a59902a7c123512681bddc3fa90f271d4f089c35.tar.gz gdb-a59902a7c123512681bddc3fa90f271d4f089c35.tar.bz2 |
gdb: convert auto-load to new-style debug macros
Function file_is_auto_load_safe was taking a format string and varargs
just to output a debug print. This is probably because that function is
used in linux-thread-db.c and main.c, but debug_auto_load is static in
auto-load.c. I simplified that, making debug_auto_load visible outside
of auto-load.c, and making the callers of file_is_auto_load_safe output
the debug print themselves.
This file uses _() for internationalization of the debug messages. This
is not necessary, as these are mostly messages for GDB developers, and
it's not used in other files anyway. So I removed them.
The rest is pretty much standard.
gdb/ChangeLog:
* auto-load.h (debug_auto_load): Move here.
(auto_load_debug_printf): New.
* auto-load.c: Use auto_load_debug_printf.
(debug_auto_load): Move to header.
* linux-thread-db.c (try_thread_db_load): Use
auto_load_debug_printf.
* main.c (captured_main_1): Likewise.
Change-Id: I468dc2a1d24b7dbf171f55181a11abbfafe70ba1
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b074b1b..2d820d2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> + * auto-load.h (debug_auto_load): Move here. + (auto_load_debug_printf): New. + * auto-load.c: Use auto_load_debug_printf. + (debug_auto_load): Move to header. + * linux-thread-db.c (try_thread_db_load): Use + auto_load_debug_printf. + * main.c (captured_main_1): Likewise. + +2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> + * f-valprint.c (f77_array_offset_tbl): Remove. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |